/*
Theme Name: Farhad
Theme URI: https://farhadia.com/
Author: Farhad
Author URI: https://farhadia.com/
Description: A lightweight custom portfolio WordPress theme built for Farhad's personal brand, work experience, services, and portfolio.
Version: 1.0.0
Text Domain: farhad
*/

/* =========================================================
   FONTS
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');


/* =========================================================
   VARIABLES
========================================================= */

:root {
  --bg: #020403;
  --bg-secondary: #050806;
  --bg-soft: #0a0f0c;

  --green-dark: #0b2c21;
  --green-deep: #0f3d2e;
  --green: #19a66b;
  --green-bright: #2fd18a;
  --green-light: #8be6bb;

  --white: #ffffff;

  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.64);
  --text-soft: rgba(255, 255, 255, 0.44);

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --container: 1180px;
}


/* =========================================================
   RESET
========================================================= */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;

  font-family: "Inter", Arial, sans-serif;

  background: var(--bg);
  color: var(--text);

  font-size: 16px;
  line-height: 1.6;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  overflow-x: hidden;
}

body.admin-bar .site-header {
  top: 60px;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
}

p {
  margin-top: 0;
}

::selection {
  background: var(--green);
  color: #ffffff;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 4px;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: fixed;

  top: 28px;
  left: 0;

  width: 100%;

  z-index: 999;
}

.site-header__inner {
  width: min(var(--container), calc(100% - 48px));

  margin-inline: auto;

  min-height: 70px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  padding: 14px 20px;

  border: 1px solid var(--border);

  border-radius: 20px;

  background:
    linear-gradient(
      180deg,
      rgba(8, 12, 9, 0.92),
      rgba(3, 5, 4, 0.86)
    );

  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}


/* =========================================================
   BRAND
========================================================= */

.site-branding {
  flex-shrink: 0;

  display: flex;
  align-items: center;
}

.site-branding a {
  display: inline-flex;
  align-items: center;

  font-family: "Manrope", sans-serif;

  font-size: 19px;
  font-weight: 700;

  letter-spacing: -0.04em;

  color: #ffffff;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.site-branding a:hover {
  color: var(--green-light);
  transform: translateY(-1px);
}


/* =========================================================
   NAVIGATION
========================================================= */

.site-navigation {
  display: flex;
  align-items: center;
}

.site-navigation ul {
  margin: 0;
  padding: 0;

  list-style: none;

  display: flex;
  align-items: center;

  gap: 28px;
}

.site-navigation li {
  margin: 0;
}

.site-navigation a {
  position: relative;

  display: inline-flex;
  align-items: center;

  padding: 9px 0;

  font-size: 14px;
  font-weight: 500;

  color: rgba(255, 255, 255, 0.68);

  transition: color 0.25s ease;
}

.site-navigation a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 1px;

  width: 100%;
  height: 1px;

  background: var(--green-bright);

  transform: scaleX(0);
  transform-origin: right;

  transition: transform 0.3s ease;
}

.site-navigation a:hover {
  color: #ffffff;
}

.site-navigation a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


/* =========================================================
   PREMIUM HERO
========================================================= */

.hero-premium {
  position: relative;

  min-height: 100svh;

  display: flex;
  align-items: center;

  overflow: hidden;

  padding: 175px 0 70px;

  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(20, 92, 65, 0.35),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 25%,
      rgba(25, 166, 107, 0.12),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #020403 0%,
      #050806 48%,
      #020403 100%
    );
}


/* Hero grid background */

.hero-premium::before {
  content: "";

  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    );

  background-size: 54px 54px;

  opacity: 0.65;

  pointer-events: none;
}


/* Hero bottom fade */

.hero-premium::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 220px;

  background:
    linear-gradient(
      180deg,
      transparent,
      #040605
    );

  pointer-events: none;
}


/* =========================================================
   HERO ORBS
========================================================= */

.hero-orb {
  position: absolute;

  border-radius: 50%;

  filter: blur(80px);

  pointer-events: none;

  opacity: 0.65;

  animation: heroFloat 10s ease-in-out infinite alternate;
}

.hero-orb-one {
  width: 480px;
  height: 480px;

  left: -180px;
  top: 100px;

  background: rgba(24, 122, 82, 0.32);
}

.hero-orb-two {
  width: 500px;
  height: 500px;

  right: -230px;
  top: 220px;

  background: rgba(25, 166, 107, 0.18);

  animation-delay: -4s;
}

@keyframes heroFloat {

  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(40px, -25px, 0) scale(1.08);
  }

}


/* =========================================================
   HERO LAYOUT
========================================================= */

.hero-premium-grid {
  position: relative;

  z-index: 3;

  display: grid;

  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(330px, 0.65fr);

  gap: 80px;

  align-items: center;
}


/* =========================================================
   HERO STATUS
========================================================= */

.hero-status {
  width: fit-content;

  display: flex;
  align-items: center;

  gap: 9px;

  margin-bottom: 32px;

  padding: 8px 13px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.025);

  font-size: 12px;

  color: rgba(255, 255, 255, 0.62);
}

.hero-status-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--green-bright);

  box-shadow:
    0 0 14px rgba(47, 209, 138, 0.8);

  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

  50% {
    opacity: 0.45;
  }

}


/* =========================================================
   HERO KICKER
========================================================= */

.hero-kicker {
  margin: 0 0 25px;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 0.18em;

  color: var(--green-light);
}


/* =========================================================
   HERO TITLE
========================================================= */

.hero-premium-title {
  max-width: 850px;

  margin: 0;

  font-family: "Manrope", sans-serif;

  font-size: clamp(58px, 6.2vw, 96px);

  line-height: 0.95;

  letter-spacing: -0.065em;

  font-weight: 800;

  color: #ffffff;
}

.hero-premium-title span {
  position: relative;

  display: inline-block;

  color: var(--green-bright);
}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.hero-premium-description {
  max-width: 690px;

  margin: 34px 0 0;

  font-size: 18px;

  line-height: 1.75;

  color: rgba(255, 255, 255, 0.58);
}


/* =========================================================
   HERO ACTIONS
========================================================= */

.hero-premium-actions {
  display: flex;

  gap: 14px;

  flex-wrap: wrap;

  margin-top: 40px;
}

.premium-btn {
  min-height: 56px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 14px;

  padding: 0 25px;

  border-radius: 999px;

  font-size: 14px;

  font-weight: 700;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.premium-btn-primary {
  color: #021008;

  background:
    linear-gradient(
      135deg,
      #4bea9f,
      #20b877
    );

  box-shadow:
    0 12px 35px rgba(32, 184, 119, 0.18);
}

.premium-btn-primary:hover {
  transform: translateY(-4px);

  box-shadow:
    0 20px 45px rgba(32, 184, 119, 0.3);
}

.premium-btn-arrow {
  font-size: 17px;

  transition: transform 0.3s ease;
}

.premium-btn-primary:hover .premium-btn-arrow {
  transform: translate(3px, -3px);
}

.premium-btn-secondary {
  border:
    1px solid rgba(255, 255, 255, 0.12);

  color: #ffffff;

  background:
    rgba(255, 255, 255, 0.025);
}

.premium-btn-secondary:hover {
  transform: translateY(-4px);

  border-color:
    rgba(47, 209, 138, 0.28);

  background:
    rgba(47, 209, 138, 0.06);
}


/* =========================================================
   HERO RIGHT VISUAL
========================================================= */

.hero-visual {
  position: relative;

  min-height: 530px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-card {
  position: relative;

  width: 100%;

  min-height: 450px;

  overflow: hidden;

  display: flex;
  flex-direction: column;

  justify-content: space-between;

  padding: 28px;

  border:
    1px solid rgba(255, 255, 255, 0.1);

  border-radius: 28px;

  background:
    radial-gradient(
      circle at 75% 15%,
      rgba(47, 209, 138, 0.17),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.015)
    );

  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);

  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-visual-card::before {
  content: "";

  position: absolute;

  width: 260px;
  height: 260px;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  background:
    rgba(25, 166, 107, 0.08);

  filter: blur(10px);
}


/* Visual top */

.visual-top {
  position: relative;

  z-index: 2;

  display: flex;

  justify-content: space-between;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.13em;

  color:
    rgba(255, 255, 255, 0.42);
}


/* Visual center */

.visual-center {
  position: relative;

  z-index: 2;

  text-align: center;
}

.visual-monogram {
  width: 150px;
  height: 150px;

  margin: 0 auto 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  font-family:
    "Manrope", sans-serif;

  font-size: 72px;

  font-weight: 800;

  letter-spacing: -0.08em;

  color: #031009;

  background:
    linear-gradient(
      135deg,
      var(--green-light),
      var(--green)
    );

  box-shadow:
    0 0 80px rgba(25, 166, 107, 0.22);
}

.visual-center p {
  max-width: 260px;

  margin: 0 auto;

  font-size: 15px;

  line-height: 1.6;

  color:
    rgba(255, 255, 255, 0.6);
}


/* Visual bottom */

.visual-bottom {
  position: relative;

  z-index: 2;

  display: flex;

  justify-content: space-between;

  align-items: center;

  font-size: 11px;

  color:
    rgba(255, 255, 255, 0.42);
}

.visual-online {
  display: flex;

  align-items: center;

  gap: 6px;
}

.visual-online span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background:
    var(--green-bright);
}


/* =========================================================
   FLOATING CARDS
========================================================= */

.floating-card {
  position: absolute;

  z-index: 5;

  min-width: 170px;

  padding: 16px 17px;

  border:
    1px solid rgba(255, 255, 255, 0.1);

  border-radius: 16px;

  background:
    rgba(8, 12, 9, 0.82);

  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.32);

  animation:
    floatingCard 5s ease-in-out infinite;
}

.floating-card span {
  display: block;

  margin-bottom: 4px;

  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 0.12em;

  color:
    var(--green-light);
}

.floating-card strong {
  font-family:
    "Manrope", sans-serif;

  font-size: 14px;

  color: #ffffff;
}

.floating-card-one {
  left: -40px;
  top: 105px;
}

.floating-card-two {
  right: -40px;
  bottom: 80px;

  animation-delay: -2.5s;
}

@keyframes floatingCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }

}


/* =========================================================
   HERO CAPABILITY STRIP
========================================================= */

.hero-capabilities {
  position: relative;

  z-index: 4;

  display: flex;
  align-items: center;

  justify-content: space-between;

  gap: 18px;

  margin-top: 70px;

  padding-top: 28px;

  border-top:
    1px solid rgba(255, 255, 255, 0.07);
}

.hero-capabilities span {
  white-space: nowrap;

  font-size: 11px;

  font-weight: 600;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color:
    rgba(255, 255, 255, 0.42);
}

.hero-capabilities i {
  width: 4px;
  height: 4px;

  flex-shrink: 0;

  border-radius: 50%;

  background:
    var(--green);
}


/* =========================================================
   ABOUT SECTION
========================================================= */

.about-section {
  position: relative;

  padding: 130px 0;

  border-top:
    1px solid rgba(255, 255, 255, 0.05);

  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(25, 166, 107, 0.08),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #040605 0%,
      #070a08 100%
    );
}

.about-grid {
  display: grid;

  grid-template-columns:
    170px minmax(0, 1fr);

  gap: 70px;

  align-items: start;
}

.about-label {
  position: sticky;
  top: 150px;
}

.about-label span {
  display: block;

  margin-bottom: 10px;

  font-family:
    "Manrope", sans-serif;

  font-size: 14px;

  font-weight: 700;

  color:
    var(--green-bright);
}

.about-label p {
  margin: 0;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 0.16em;

  color:
    rgba(255, 255, 255, 0.44);
}

.about-content {
  width: 100%;
  max-width: 930px;
}

.about-content h2 {
  max-width: 900px;

  font-size:
    clamp(44px, 4.7vw, 72px);

  line-height: 1.04;

  letter-spacing: -0.05em;

  font-weight: 700;

  color: #ffffff;
}

.about-lead {
  max-width: 800px;

  margin: 38px 0 0;

  font-size: 20px;

  line-height: 1.75;

  color:
    rgba(255, 255, 255, 0.76);
}

.about-content > p:not(.about-lead) {
  max-width: 780px;

  margin: 22px 0 0;

  font-size: 17px;

  line-height: 1.75;

  color:
    rgba(255, 255, 255, 0.58);
}


/* =========================================================
   ABOUT CARDS
========================================================= */

.about-stats {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 14px;

  margin-top: 54px;
}

.about-stat {
  position: relative;

  min-height: 165px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 22px;

  overflow: hidden;

  border:
    1px solid rgba(255, 255, 255, 0.08);

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.025),
      rgba(15, 61, 46, 0.14)
    );

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.about-stat::before {
  content: "";

  position: absolute;

  width: 120px;
  height: 120px;

  top: -60px;
  right: -48px;

  border-radius: 50%;

  background:
    rgba(47, 209, 138, 0.1);

  filter: blur(10px);

  pointer-events: none;
}

.about-stat:hover {
  transform: translateY(-6px);

  border-color:
    rgba(47, 209, 138, 0.30);

  background:
    linear-gradient(
      145deg,
      rgba(25, 166, 107, 0.09),
      rgba(15, 61, 46, 0.19)
    );
}

.about-stat strong {
  position: relative;

  z-index: 2;

  display: block;

  margin-bottom: 7px;

  font-family:
    "Manrope", sans-serif;

  font-size: 17px;

  line-height: 1.3;

  font-weight: 700;

  color: #ffffff;
}

.about-stat span {
  position: relative;

  z-index: 2;

  display: block;

  font-size: 13px;

  line-height: 1.5;

  color:
    rgba(255, 255, 255, 0.46);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  position: relative;

  padding: 40px 0;

  background: #040605;

  border-top:
    1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__inner {
  width: min(var(--container), calc(100% - 48px));

  margin-inline: auto;
}

.site-footer p {
  margin: 0;

  font-size: 14px;

  color: var(--text-soft);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

  .hero-premium-grid {
    grid-template-columns:
      1.15fr 0.85fr;

    gap: 45px;
  }

  .hero-premium-title {
    font-size:
      clamp(54px, 7vw, 80px);
  }

  .about-grid {
    grid-template-columns:
      130px minmax(0, 1fr);

    gap: 40px;
  }

  .about-stats {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* =========================================================
   MOBILE / TABLET PORTRAIT
========================================================= */

@media (max-width: 850px) {

  .hero-premium {
    padding: 145px 0 80px;
  }

  .hero-premium-grid {
    grid-template-columns: 1fr;

    gap: 60px;
  }

  .hero-main {
    max-width: 720px;
  }

  .hero-visual {
    min-height: auto;

    width: 100%;
  }

  .hero-visual-card {
    min-height: 420px;
  }

  .floating-card-one {
    left: 12px;
  }

  .floating-card-two {
    right: 12px;
  }

  .hero-capabilities {
    overflow-x: auto;

    justify-content: flex-start;

    padding-bottom: 10px;
  }

}


/* =========================================================
   WORDPRESS ADMIN BAR
========================================================= */

@media screen and (max-width: 782px) {

  body.admin-bar .site-header {
    top: 60px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

  .container,
  .site-header__inner,
  .site-footer__inner {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    top: 14px;
  }

  body.admin-bar .site-header {
    top: 60px;
  }

  .site-header__inner {
    min-height: 60px;

    padding: 12px 15px;

    border-radius: 16px;
  }

  .site-branding a {
    font-size: 17px;
  }

  .site-navigation {
    display: none;
  }

  .about-section {
    padding: 90px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;

    gap: 30px;
  }

  .about-label {
    position: static;
  }

  .about-content h2 {
    font-size:
      clamp(38px, 11vw, 58px);

    line-height: 1.05;
  }

  .about-lead {
    margin-top: 28px;

    font-size: 18px;
  }

  .about-stats {
    grid-template-columns: 1fr;

    margin-top: 40px;
  }

  .about-stat {
    min-height: 135px;
  }

  .site-footer {
    padding: 30px 0;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

  .hero-premium {
    padding: 135px 0 70px;
  }

  .hero-status {
    margin-bottom: 26px;
  }

  .hero-kicker {
    font-size: 10px;

    letter-spacing: 0.14em;
  }

  .hero-premium-title {
    font-size:
      clamp(46px, 13vw, 64px);

    line-height: 0.98;
  }

  .hero-premium-description {
    margin-top: 26px;

    font-size: 16px;

    line-height: 1.65;
  }

  .hero-premium-actions {
    flex-direction: column;

    align-items: stretch;

    margin-top: 32px;
  }

  .premium-btn {
    width: 100%;
  }

  .hero-visual-card {
    min-height: 390px;

    padding: 22px;
  }

  .visual-monogram {
    width: 125px;
    height: 125px;

    font-size: 60px;
  }

  .floating-card {
    min-width: 145px;

    padding: 13px;
  }

  .floating-card-one {
    left: -5px;

    top: 85px;
  }

  .floating-card-two {
    right: -5px;

    bottom: 60px;
  }

  .hero-capabilities {
    margin-top: 50px;
  }

}


/* =========================================================
   EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

  .hero-premium-title {
    font-size:
      clamp(42px, 12.5vw, 58px);
  }

  .about-content h2 {
    font-size: 38px;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }

}