@font-face {
  font-family: "irans";

  src: url("../fonts/IRANSans.ttf") format("truetype");

  font-weight: 400;

  font-style: normal;
}

:root {
  --page-bg: #061421;
  --panel-bg: #071a2a;
  --panel-light: #0a2236;
  --text-main: #f5f8fc;
  --text-muted: #aabbd0;
  --cyan: #22d4f3;
  --blue: #168cff;
  --purple: #b44cff;
  --orange: #ff982e;
  --border-dark: rgba(100, 180, 235, 0.24);
  --font-main: "Vazirmatn", Tahoma, sans-serif;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.8;
  font-family: irans, sans-serif;
  font-size: 14px;
  padding-top: 80px;
}

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

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 17, 30, 0.74);
  backdrop-filter: blur(14px);
}

.site-header .navbar {
  min-height: 76px;
}

.brand {
  flex-shrink: 0;
}

.brand-mark {
  display: inline-grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 12px 4px 12px 4px;
  background: linear-gradient(140deg, #9beaff, #2289ff 65%, #7660ff);
  color: #061421;
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 25px rgba(28, 145, 255, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.brand-text strong {
  color: #f4f8ff;
  font-size: 13px;
  font-weight: 700;
}

.brand-text small {
  color: #92a9c1;
  direction: ltr;
  font-family: irans, sans-serif;
  font-size: 8px;
  letter-spacing: 0.8px;
  text-align: right;
}

.main-nav .nav-link {
  position: relative;
  padding: 0.7rem 0.25rem;
  color: #d3dfeb;
  font-size: 12px;
  transition: color 0.2s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--cyan);
}

.main-nav .nav-link.active::after {
  position: absolute;
  right: 0.25rem;
  bottom: 0;
  left: 0.25rem;
  height: 2px;
  background: var(--blue);
  content: "";
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid #168cff;
  border-radius: 30px;
  color: #f0f8ff;
  font-size: 11px;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.header-cta span {
  color: var(--cyan);
}

.header-cta:hover {
  background: rgba(22, 140, 255, 0.12);
  box-shadow: 0 0 20px rgba(22, 140, 255, 0.15);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(34, 212, 243, 0.2);
}

.hero {
  position: relative;
  display: flex;
  min-height: 405px;
  align-items: center;
  overflow: hidden;
  padding-top: 76px;
  background: #061421;
  isolation: isolate;
}
.hero-image {
    position: absolute;
    z-index: -3;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    opacity: 0.95;
    pointer-events: none;
}

.hero-overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(
      270deg,
      #041522 0%,
      rgba(4, 21, 34, 0.96) 24%,
      rgba(4, 21, 34, 0.68) 47%,
      rgba(4, 21, 34, 0.05) 100%
    ),
    linear-gradient(
      0deg,
      #061421 0%,
      transparent 24%,
      rgba(3, 15, 27, 0.08) 100%
    );
}

.min-vh-hero {
  min-height: 325px;
}

.hero-copy {
  padding-top: 14px;
  padding-bottom: 20px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
}

.eyebrow > span {
  display: inline-block;
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 10px rgba(34, 212, 243, 0.35);
}



.hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.5;
}

.hero h1 span {
  color: #f7fbff;
}

.hero-description {
  max-width: 510px;
  margin: 0 0 20px;
  color: #d0dce8;
  font-size: 14px;
  line-height: 2.15;
}

.outline-button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 17px;
  border: 1px solid #159bfa;
  border-radius: 30px;
  color: #e9f7ff;
  font-size: 11px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.outline-button:hover {
  transform: translateY(-2px);
  background: rgba(22, 140, 255, 0.12);
  color: #fff;
}


.contact-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.outline-button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 17px;
  border: 1px solid #159bfa;
  border-radius: 30px;
  color: #e9f7ff;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.outline-button:hover {
  transform: translateY(-2px);
  background: rgba(22, 140, 255, 0.12);
  color: #fff;
}

@media (max-width: 480px) {
  .contact-links {
    gap: 8px;
  }

  .outline-button {
    padding: 8px 12px;
    font-size: 10px;
  }
}

.hide-on-inner.is-hidden {
    display: none !important;
}

.play-icon {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: #f1f8ff;
  color: #0b2940;
  font-size: 8px;
}

.hero-bottom-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(110, 185, 235, 0.2);
}

.expertise-section {
  padding: 26px 0 30px;
  background:
    linear-gradient(
      rgba(6, 20, 33, 0.85),
      rgba(6, 20, 33, 0.95)
    ),
    url("/images/wave.png") center / cover no-repeat;
}

.service-grid {
  align-items: stretch;
}

.service-card {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 270px;
  flex-direction: column;
  overflow: hidden;
  padding: 0 0 16px;
  line-height: 0.6;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  background: linear-gradient(145deg, #0a2035, #071727);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.game-card {
  border-color: #a44bff;
  background: linear-gradient(145deg, #21143e, #0c1730);
}

.software-card {
  border-color: #008eff;
}

.ai-card {
  border-color: #087eff;
}

.other-card {
  border-color: #ff8b20;
  background: linear-gradient(145deg, #30251b, #171c22);
}

.service-image {
  position: relative;
  display: grid;
  height: 122px;
  flex-shrink: 0;
  place-items: center;
  margin: 0;
  overflow: hidden;
}

.service-image::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
}

.game-art {
  background: radial-gradient(
    ellipse at 50% 45%,
    #b33bff 0%,
    #4b248f 35%,
    #191b4a 76%
  );
}

.image-symbol {
  z-index: 1;
  color: #fff;
  font-size: 66px;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.software-art {
  background: radial-gradient(ellipse at 50% 50%, #1667ad, #0b2440 72%);
}

.mock-dashboard {
  z-index: 1;
  display: grid;
  width: 76%;
  height: 82px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 7px 1fr;
  gap: 7px;
  padding: 9px;
  transform: perspective(300px) rotateY(-7deg);
  border: 1px solid #80caff;
  border-radius: 5px;
  background: #dceeff;
  box-shadow: 0 0 24px rgba(30, 144, 255, 0.25);
}

.mock-dashboard span {
  border-radius: 2px;
  background: #9cb9d4;
}

.mock-dashboard b {
  border-radius: 3px;
  background: linear-gradient(0deg, #218aff 25%, #9edbff 25%);
}

.ai-art {
  background: radial-gradient(circle, #063e85, #061b31 72%);
}

.neural-brain {
  z-index: 1;
  display: grid;
  width: 85px;
  height: 85px;
  place-items: center;
  border: 1px solid #2ad8ff;
  border-radius: 50%;
  background: radial-gradient(circle, #087ddc, #071b38 70%);
  box-shadow:
    0 0 30px rgba(0, 153, 255, 0.55),
    inset 0 0 20px rgba(0, 153, 255, 0.4);
}

.neural-brain span {
  color: #d5fbff;
  font-family: irans, sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 0 15px #00cfff;
}

.other-art {
  background: radial-gradient(ellipse at center, #6d421f, #211d1a 72%);
}

.vr-shape {
  z-index: 1;
  width: 92px;
  height: 60px;
  transform: perspective(120px) rotateY(-12deg) rotate(-5deg);
  border: 3px solid #f2a64e;
  border-radius: 17px 17px 23px 23px;
  background: linear-gradient(135deg, #5c493a, #111d29);
  box-shadow: 0 0 25px rgba(255, 143, 31, 0.28);
}

.service-icon {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #8d45ed;
  color: white;
  font-size: 20px;
}

.software-card .service-icon,
.ai-card .service-icon {
  background: #148de8;
}

.other-card .service-icon {
  background: #f28b25;
}

.service-card h2 {
  margin: 11px 15px 4px;
  color: #f4f8ff;
  font-size: 16px;
  font-weight: 700;
}

.service-card p {
  margin: 0 15px 8px;
  color: #c0ccda;
  font-size: 13px;
  line-height: 1.9;
}

.round-link {
  display: grid;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  place-items: center;
  margin: auto 15px 0;
  border-radius: 50%;
  background: #a348f4;
  color: white;
  font-size: 17px;
  transition: transform 0.2s ease;
}

.software-card .round-link,
.ai-card .round-link {
  background: #168cff;
}

.other-card .round-link {
  background: #ff982e;
}

.service-card:hover .round-link {
  transform: translateX(-4px);
}

.projects-section {
  padding: 45px max(24px, 10%) !important;
  background: #f3f7fc;
  color: #10253d;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-inline: 15%;
  
}

.section-heading {
  margin-bottom: 20px;
}

.dark-eyebrow {
  color: #1685ca;
}

.section-heading h2 {
  margin: 0;
  color: #0a2038;
  font-size: clamp(25px, 2.5vw, 32px);
  font-weight: 800;
}

.section-heading h2 span {
  color: #168cff;
}

.section-subtitle {
  margin: 7px 0 0;
  color: #6d8095;
  font-size: 11px;
}


.about-section > div {
  flex: 1;
  min-width: 0;
  width: 50%;
}

.about-text {
  max-width: 80%;
  line-height: 1.7;
  font-size: 1.05rem;
  margin: 0;
  text-align: justify;
}

.about-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}


@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    gap: 24px;
    padding: 35px 24px !important;
  }

  .about-section > div {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .about-text {
    overflow-wrap: anywhere;
    font-size: 1rem;
  }
   .about-photo {
    display: none !important;
  }
}



.light-outline-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  border: 1px solid #a8d6fa;
  border-radius: 25px;
  color: #168cff;
  font-size: 11px;
  white-space: nowrap;
}

.light-outline-button:hover {
  background: #e6f4ff;
  color: #0765b7;
}

.project-card {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(25, 65, 105, 0.07);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(25, 65, 105, 0.12);
}

.project-art {
  position: relative;
  display: grid;
  height: 155px;
  place-items: center;
  overflow: hidden;
}

.project-art::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
}

.island-art {
  background: radial-gradient(
    ellipse at 50% 70%,
    #6ed4c6,
    #1a8da5 35%,
    #17345f 76%
  );
}

.island-sun {
  z-index: 1;
  color: #d2fff5;
  font-size: 72px;
  text-shadow: 0 0 24px #79fff0;
}

.island-hill {
  position: absolute;
  right: -5%;
  bottom: -55px;
  left: -5%;
  height: 100px;
  transform: rotate(-5deg);
  border-radius: 50%;
  background: linear-gradient(120deg, #0c5a6c, #132d53);
}

.management-art {
  background: linear-gradient(135deg, #b5dfff, #4f91c7);
}

.large-dashboard {
  z-index: 1;
  display: grid;
  width: 68%;
  height: 105px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 8px 1fr;
  gap: 8px;
  padding: 12px;
  transform: perspective(300px) rotateY(-8deg);
  border: 1px solid #b5d7f1;
  border-radius: 6px;
  background: #f6fbff;
  box-shadow: 0 12px 25px rgba(8, 40, 75, 0.25);
}

.large-dashboard span {
  border-radius: 3px;

  background: #b9d0e3;
}

.large-dashboard b {
  border-radius: 3px;
  background: linear-gradient(0deg, #258cff 24%, #c7e7ff 24%);
}

.assistant-art {
  background: radial-gradient(circle, #075bb8, #07172e 70%);
}

.assistant-orb {
  z-index: 2;
  display: grid;
  width: 95px;
  height: 95px;
  place-items: center;
  border: 1px solid #3de0ff;
  border-radius: 50%;
  background: radial-gradient(circle, #0a6ec0, #07182d 70%);
  color: #b5f7ff;
  font-family: irans, sans-serif;
  font-size: 30px;
  font-weight: 700;
  box-shadow: 0 0 28px rgba(0, 162, 255, 0.55);
}

.assistant-rings {
  position: absolute;
  width: 160px;
  height: 65px;
  transform: rotate(-28deg);
  border: 1px solid #3edaff99;
  border-radius: 50%;
}

.project-chip {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  background: rgba(4, 20, 34, 0.72);
  color: #f5fbff;
  font-size: 9px;
}

.project-body {
  padding: 13px 15px 15px;
}

.project-body h3 {
  margin: 0 0 5px;
  color: #10253d;
  font-size: 12px;
  font-weight: 700;
}

.project-body p {
  margin: 0 0 10px;
  color: #72869b;
  font-size: 10px;
}

.project-link {
  color: #168cff;
  font-size: 10px;
  font-weight: 600;
}

.about-section {
  position: relative;
  overflow: hidden;
  padding: 45px 0;
  background:
    radial-gradient(
      ellipse at 20% 100%,
      rgba(14, 88, 176, 0.2),
      transparent 45%
    ),
    #061421;
}

.about-copy h2 {
  margin: 0 0 12px;
  color: #f5f8fc;
  font-size: clamp(23px, 2.6vw, 32px);
  font-weight: 800;
}

.about-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin: 0 0 18px;
  color: #b4c3d3;
  font-size: 13px;
  line-height: 2.2;
}

.value-grid {
  text-align: center;
}

.value-item {
  height: 100%;
  min-height: 105px;
  padding: 12px 8px;
  border-left: 1px solid rgba(31, 140, 255, 0.35);
}

.value-item > span {
  display: block;
  margin-bottom: 4px;
  color: #398fff;
  font-size: 27px;
  line-height: 1.4;
}

.value-item h3 {
  margin: 0 0 3px;
  color: #eef6ff;
  font-size: 11px;
  font-weight: 700;
}

.value-item p {
  margin: 0;
  color: #9aafc4;
  font-size: 10px;
}

.contact-section {
  padding: 30px 0;
  border-top: 1px solid rgba(90, 160, 220, 0.18);
  background: #081a2a;
}

.contact-section h2 {
  margin: 0 0 4px;
  color: #f3f8ff;
  font-size: 23px;
  font-weight: 750;
}

.contact-section p:not(.eyebrow) {
  margin: 0;
  color: #9fb2c6;
  font-size: 11px;
}

.contact-section .eyebrow {
  font-family: irans, sans-serif;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.site-footer {
  padding: 20px 0;
  background: #04101b;
}

.site-footer p {
  margin: 0;
  color: #8298ad;
  font-size: 10px;
}

.site-footer .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 23px;
}

.site-footer .brand-text strong {
  font-size: 11px;
}

.site-footer .brand-text small {
  font-size: 7px;
}

.back-top {
  color: #91a9c0;
  font-size: 10px;
}

.back-top:hover {
  color: var(--cyan);
}

/* Tablet layouts */
@media (max-width: 1199.98px) {
  .site-header .navbar {
    min-height: 72px;
  }

  .header-cta {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .hero {
    min-height: 390px;
  }

  .min-vh-hero {
    min-height: 315px;
  }

  .service-card {
    min-height: 265px;
  }

  .service-image {
    height: 130px;
  }
}

/* Bootstrap's collapsed navigation on phones and smaller tablets */
@media (max-width: 991.98px) {
  .site-header .navbar {
    min-height: 70px;
  }

  .site-header .navbar-collapse {
    padding: 12px 4px 18px;
  }

  .main-nav .nav-link {
    padding: 9px 0;
  }

  .main-nav .nav-link.active::after {
    right: 0;
    bottom: 4px;
    left: auto;
    width: 25px;
  }

  .header-cta {
    display: inline-flex;
    width: fit-content;
    margin-top: 12px;
  }

  .hero {
    min-height: 420px;
    padding-top: 70px;
  }

  .hero-image {
    background-position: 35% center;
  }

  .hero-overlay {
    background:
      linear-gradient(
        270deg,
        rgba(4, 21, 34, 0.98) 0%,
        rgba(4, 21, 34, 0.84) 42%,
        rgba(4, 21, 34, 0.3) 100%
      ),
      linear-gradient(0deg, #061421 0%, transparent 24%);
  }

  .hero-copy {
    max-width: 620px;
  }

  .service-card {
    min-height: 270px;
  }

  .service-image {
    height: 145px;
  }

  .projects-section {
    padding: 35px 0;
  }
}

/* Phones */
@media (max-width: 575.98px) {
  .brand-mark {
    width: 37px;
    height: 37px;
    font-size: 25px;
  }

  .brand-text strong {
    font-size: 11px;
  }

  .brand-text small {
    font-size: 7px;
    letter-spacing: 0.4px;
  }

  .hero {
    min-height: 440px;
    padding-top: 82px;
    padding-bottom: 25px;
  }

  .hero-image {
    background-position: 27% center;
    opacity: 0.6;
  }

  .hero-overlay {
    background:
      linear-gradient(270deg, rgba(4, 21, 34, 0.94), rgba(4, 21, 34, 0.72)),
      linear-gradient(0deg, #061421 0%, transparent 45%);
  }

  .min-vh-hero {
    min-height: 350px;
  }

  .hero-copy {
    padding-top: 20px;
  }

  .hero h1 {
    font-size: clamp(28px, 7.5vw, 38px);
    line-height: 1.55;
  }

  .hero-description {
    font-size: 11px;
    line-height: 2.2;
  }

  .expertise-section {
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .service-card {
    min-height: 0;
    padding-bottom: 15px;
  }

  .service-image {
    height: 155px;
  }

  .service-card h2 {
    font-size: 15px;
  }

  .service-card p {
    font-size: 10px;
  }

  .projects-section {
    padding: 30px 0;
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .project-art {
    height: 175px;
  }

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

  .about-copy h2 {
    font-size: 25px;
  }

  .contact-section {
    padding: 25px 0;
  }

  .contact-section h2 {
    font-size: 21px;
  }

  .site-footer .container {
    justify-content: center !important;
    text-align: center;
  }

  .site-footer p {
    width: 100%;
    order: 3;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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