/* ============================================================
   Farid Tashayoee — AI Marketing  |  Brand Guide v2.0
   ============================================================ */

:root {
  /* Brand palette */
  --deep-forest: #085041;
  --teal-growth: #1D9E75;
  --data-blue:   #378ADD;
  --mint-light:  #E1F5EE;
  --charcoal:    #2C2C2A;

  /* Derived dark theme */
  --bg:        #051f1a;
  --bg-2:      #07291f;
  --surface:   rgba(225, 245, 238, 0.04);
  --surface-2: rgba(225, 245, 238, 0.07);
  --border:    rgba(29, 158, 117, 0.22);
  --border-hi: rgba(29, 158, 117, 0.55);
  --text:      #E1F5EE;
  --text-dim:  rgba(225, 245, 238, 0.62);
  --text-faint:rgba(225, 245, 238, 0.38);

  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", "Plus Jakarta Sans", sans-serif;
  --font-fa:   "Vazirmatn", "Plus Jakarta Sans", sans-serif;

  --max: 1180px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lang-fa { font-family: var(--font-fa); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; font-weight: 700; }
body.lang-fa h1, body.lang-fa h2, body.lang-fa h3 { font-family: var(--font-fa); }

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

/* Grain overlay ------------------------------------------------ */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- NAVBAR ---------------- */
.nav {
  position: fixed; top: 1rem; left: 1rem; right: 1rem; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: .75rem 1.25rem .75rem 1.6rem;
  background: rgba(5, 31, 26, 0.72);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background .4s var(--ease), border-color .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(5, 31, 26, 0.93);
  border-color: var(--border-hi);
  box-shadow: 0 8px 40px -8px rgba(0,0,0,.55);
}
.nav__logo { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; }
.nav__logo span { color: var(--teal-growth); }
.nav__links { display: flex; align-items: center; gap: 1.8rem; margin-inline-start: auto; }
.nav__links a { font-size: .92rem; color: var(--text-dim); transition: color .25s; font-weight: 500; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: .55rem 1.1rem; border: 1px solid var(--border-hi);
  border-radius: 999px; color: var(--text) !important;
}
.nav__cta:hover { background: var(--teal-growth); border-color: var(--teal-growth); }

.lang-switch { display: flex; gap: .2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .25rem; }
.lang-btn {
  font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--text-dim); border: none;
  padding: .3rem .7rem; border-radius: 999px; transition: all .25s;
}
.lang-btn.is-active { background: var(--teal-growth); color: #042019; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav__burger span { width: 26px; height: 2px; background: var(--text); transition: .3s; }

/* ---------------- HERO ---------------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 9rem clamp(1.2rem, 5vw, 3.5rem) 5rem; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(29,158,117,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,158,117,.055) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 20% 30%, black 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 65% at 20% 30%, black 10%, transparent 75%);
}
.hero__mesh {
  position: absolute; inset: -20%; z-index: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(29,158,117,.45), transparent 45%),
    radial-gradient(circle at 80% 15%, rgba(55,138,221,.30), transparent 40%),
    radial-gradient(circle at 65% 80%, rgba(8,80,65,.65), transparent 55%);
  filter: blur(20px); animation: meshFloat 18s ease-in-out infinite alternate;
}
.hero__inner { position: relative; z-index: 1; max-width: var(--max); margin-inline: auto; width: 100%; }
/* Available badge */
.hero__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(29,158,117,.1); border: 1px solid rgba(29,158,117,.3);
  border-radius: 999px; padding: .42rem 1rem;
  font-size: .8rem; font-weight: 600; color: var(--teal-growth);
  margin-bottom: 1.6rem;
}
.hero__badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-growth); flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}
.hero__kicker { font-size: .8rem; letter-spacing: .28em; color: var(--teal-growth); font-weight: 600; margin-bottom: 1.4rem; }
.hero__name { font-size: clamp(2.8rem, 9vw, 7rem); font-weight: 800; letter-spacing: -.03em; }
.hero__role { font-size: clamp(1.2rem, 3.2vw, 2.1rem); margin-top: .6rem; font-family: var(--font-head); font-weight: 500; color: var(--text-dim); display: flex; gap: .5ch; flex-wrap: wrap; }
.typewriter { color: var(--teal-growth); font-weight: 700; border-inline-end: 2px solid var(--teal-growth); padding-inline-end: 2px; }
.hero__tagline { margin-top: 1.6rem; font-size: clamp(1rem, 2.2vw, 1.35rem); color: var(--text); max-width: 38ch; font-style: italic; }

.hero__stats { display: grid; grid-template-columns: repeat(4, auto); gap: clamp(1.5rem, 5vw, 3.5rem); margin-top: 2.8rem; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--teal-growth); line-height: 1; }
.stat__label { font-size: .8rem; color: var(--text-dim); margin-top: .4rem; }

.hero__actions { display: flex; gap: 1rem; margin-top: 2.8rem; flex-wrap: wrap; }

.btn {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.7rem; border-radius: 999px; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s; display: inline-block;
}
body.lang-fa .btn { font-family: var(--font-fa); }
.btn--primary { background: var(--teal-growth); color: #042019; border: 1px solid var(--teal-growth); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -8px rgba(29,158,117,.6); }
.btn--ghost { border: 1px solid var(--border-hi); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-3px); }

.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid var(--border-hi); border-radius: 14px; }
.hero__scroll span { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; background: var(--teal-growth); border-radius: 2px; animation: scrollDot 1.6s infinite; }

/* ---------------- SECTIONS ---------------- */
section { padding: clamp(4rem, 10vw, 8rem) clamp(1.2rem, 5vw, 3.5rem); }
.section-head { max-width: var(--max); margin-inline: auto; margin-bottom: 3.5rem; }
.section-head__tag {
  font-size: .76rem; letter-spacing: .26em; color: var(--teal-growth); font-weight: 600;
  display: inline-flex; align-items: center; gap: .65rem;
}
.section-head__tag::before {
  content: ""; display: inline-block; width: 22px; height: 2px;
  background: var(--teal-growth); border-radius: 2px; flex-shrink: 0;
}
.section-head h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-top: .8rem; letter-spacing: -.02em; }
.section-head p { color: var(--text-dim); margin-top: 1.2rem; max-width: 60ch; font-size: 1.05rem; }

/* Pillars */
.pillars { max-width: var(--max); margin-inline: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem; transition: transform .35s var(--ease), border-color .35s, background .35s; cursor: pointer; }
.pillar:hover { transform: translateY(-6px); border-color: var(--border-hi); background: var(--surface-2); }
.pillar__icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(29,158,117,.1); border: 1px solid rgba(29,158,117,.22);
  border-radius: 14px; margin-bottom: 1.25rem; color: var(--teal-growth);
  transition: background .35s, border-color .35s;
}
.pillar__icon svg { width: 24px; height: 24px; }
.pillar:hover .pillar__icon { background: rgba(29,158,117,.18); border-color: rgba(29,158,117,.45); }
.pillar h3 { font-size: 1.25rem; }
.pillar p { color: var(--text-dim); margin-top: .7rem; font-size: .96rem; }

/* Results — interactive cards */
.results__grid { max-width: var(--max); margin-inline: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rcard {
  position: relative;
  background: #0d3829;
  border: 1.5px solid rgba(29,158,117,.35);
  border-radius: 20px;
  padding: 1.6rem 1.8rem 1.8rem;
  overflow: hidden;
  cursor: default;
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s, border-color .28s;
  box-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.rcard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border-top: 2px solid rgba(29,158,117,.6);
  pointer-events: none;
}
.rcard:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(29,158,117,.7);
  box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 32px rgba(29,158,117,.18);
}
.rcard--wide { grid-column: span 2; }
.rcard--featured { background: linear-gradient(135deg, #0f3d2c 0%, #0d3829 60%, #082f22 100%); }
.rcard__glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(29,158,117,.18) 0%, transparent 70%);
  pointer-events: none;
}
.rcard__tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1D9E75;
  background: rgba(29,158,117,.12);
  border: 1px solid rgba(29,158,117,.25);
  border-radius: 999px;
  padding: .2rem .7rem;
  margin-bottom: .9rem;
}
.rcard__metric {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: .6rem;
  background: linear-gradient(120deg, #1D9E75 0%, #378ADD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rcard h3 { font-size: 1rem; font-weight: 600; color: #E1F5EE; line-height: 1.4; }
.rcard p { color: rgba(225,245,238,.6); margin-top: .45rem; font-size: .85rem; line-height: 1.7; }

/* Timeline */
.timeline { max-width: 760px; margin-inline: auto; position: relative; padding-inline-start: 2rem; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--teal-growth), transparent); }
.tl-item { position: relative; padding-bottom: 2.6rem; }
.tl-dot { position: absolute; inset-inline-start: -2rem; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--teal-growth); transform: translateX(calc(var(--dir, -1) * -1px)); }
.tl-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.6rem; transition: border-color .3s, transform .3s; cursor: default; }
.tl-body:hover { border-color: var(--border-hi); transform: translateX(calc(var(--dir, 1) * 4px)); }
.tl-date { font-size: .78rem; color: var(--data-blue); font-weight: 600; }
.tl-body h3 { font-size: 1.25rem; margin-top: .3rem; }
.tl-role { font-size: .9rem; color: var(--teal-growth); font-weight: 500; }
.tl-body p { color: var(--text-dim); margin-top: .5rem; font-size: .92rem; }
.tl-header { display: flex; align-items: center; gap: 1rem; }
.tl-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; padding: 5px; flex-shrink: 0; border: 1px solid var(--border); }
.tl-info { flex: 1; }
.tl-clients { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; align-items: center; }
.client-logo { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; background: #fff; padding: 3px; border: 1px solid var(--border); opacity: .85; transition: opacity .2s; }
.client-logo:hover { opacity: 1; }

/* Skills */
.skills__grid { max-width: var(--max); margin-inline: auto; display: flex; flex-wrap: wrap; gap: .8rem; }
.chip { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .7rem 1.3rem; font-size: .92rem; font-weight: 500; transition: all .3s var(--ease); cursor: default; }
.chip:hover { background: var(--teal-growth); color: #042019; border-color: var(--teal-growth); transform: translateY(-3px); }
.certs { max-width: var(--max); margin: 2.5rem auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.cert { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .3rem; }
.cert strong { font-family: var(--font-head); color: var(--teal-growth); }
.cert span { font-size: .85rem; color: var(--text-dim); }

/* Contact */
.contact { background: linear-gradient(180deg, transparent, rgba(8,80,65,.25)); }
.contact__inner { max-width: 640px; margin-inline: auto; text-align: center; }
.contact h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.contact__lead, .contact p { color: var(--text-dim); margin-top: 1rem; }

/* WhatsApp primary CTA */
.btn--whatsapp {
  display: inline-flex; align-items: center; gap: .65rem;
  background: #25D366; color: #042019 !important;
  border: none; padding: .9rem 1.8rem;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  border-radius: 999px; cursor: pointer; margin-top: 2rem;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.btn--whatsapp svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--whatsapp:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -8px rgba(37,211,102,.5); background: #22c55e; }

.contact__divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 2rem 0 0; color: var(--text-faint); font-size: .82rem;
}
.contact__divider::before, .contact__divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

.contact__form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; text-align: start; }
.contact__form input, .contact__form textarea {
  font: inherit; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: .9rem 1.1rem; color: var(--text); resize: vertical;
  transition: border-color .25s, background .25s;
}
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--border-hi); background: var(--surface-2); }
.contact__form input::placeholder, .contact__form textarea::placeholder { color: var(--text-faint); }
.contact__form .btn { align-self: flex-start; }
.contact__status { font-size: .9rem; color: var(--teal-growth); min-height: 1.2em; }
.contact__social { display: flex; gap: 1.2rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.contact__social a {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--text-dim); font-weight: 500; font-size: .9rem;
  padding: .5rem 1rem; border: 1px solid var(--border); border-radius: 999px;
  transition: color .25s, border-color .25s, background .25s; cursor: pointer;
}
.contact__social a svg { width: 16px; height: 16px; flex-shrink: 0; }
.contact__social a:hover { color: var(--teal-growth); border-color: var(--border-hi); background: var(--surface); }

.footer { max-width: var(--max); margin: 4rem auto 0; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: var(--text-faint); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 860px) {
  .nav {
    border-radius: 20px; padding: .7rem 1rem; gap: 1rem;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(5, 31, 26, 0.96);
  }
  .nav__links {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column; background: rgba(5,31,26,.97); backdrop-filter: blur(14px);
    padding: 6rem 2rem 2rem; gap: 1.5rem;
    transform: translateY(-110%); transition: transform .4s var(--ease);
    justify-content: flex-start; border-radius: 0; z-index: 99;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__burger { display: flex; margin-inline-start: auto; order: 3; }
  .lang-switch { order: 2; }
  .pillars, .certs { grid-template-columns: 1fr; }
  .results__grid { grid-template-columns: 1fr; }
  .rcard--wide { grid-column: span 1; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .footer { flex-direction: column; }
  .btn--whatsapp { width: 100%; justify-content: center; }
  .contact__divider { margin-top: 1.5rem; }
}
