* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Vazirmatn", sans-serif;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0b1120;
  color: #fff;
}

.container {
  width: min(1200px, 90%);
  margin: auto;
}

header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(15px);
  background: rgba(11, 17, 32, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

nav {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #3b82f6;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: #3b82f6;
}

.menu-toggle {
  display: none;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
}

.hero::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  background: #2563eb;
  filter: blur(180px);
  opacity: 0.2;
  top: -200px;
  left: -200px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #3b82f6;
}

.hero-text {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  width: 100%;
}

.hero-text img {
  width: 500px;
  border: none;
  outline: none;
  border-radius: 18px;
}

.hero p {
  color: #94a3b8;
  max-width: 650px;
  line-height: 2;
  margin-bottom: 35px;
  font-size: 18px;
}

.btns {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 14px 30px;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 600;
}

.primary {
  background: #2563eb;
  color: #fff;
}

.primary:hover {
  transform: translateY(-3px);
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.secondary:hover {
  transform: translateY(-3px);
}

.section {
  padding: 50px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 35px;
  text-align: center;
}

.stat-card h3 {
  font-size: 2.5rem;
  color: #3b82f6;
}

.discover__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: start;
}

.discover__card {
  background: #111827;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: 0.5s;
}

.discover__card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.discover__card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.discover__card:hover img {
  transform: scale(1.08);
}

.discover__card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.discover__card h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-align: center;
}

.discover__card p {
  color: #fff;
  line-height: 1.9;
  text-align: justify;
  direction: rtl;
  line-height: 2;
  margin-bottom: 1.5rem;
  flex: 1;
  opacity: 0.8;
}

.discover__card__btn {
  margin-top: auto;
  text-align: center;
}

.discover__card__btn .btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.discover__card__btn .btn:hover {
  transform: translateY(-3px);
  box-shadow: #111827;
}

.card-text {
  max-height: 120px;
  overflow: hidden;
  text-align: justify;
  direction: rtl;
  line-height: 2;
  opacity: 0.8;
  transition:
    max-height 0.5s ease,
    opacity 0.3s ease;
}

.discover__card.open .card-text {
  max-height: 600px;
  opacity: 1;
}

.services {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 10px;
}

.services-cart {
  display: flex;
  gap: 10px;
}

.cart {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 35px;
  transition: 0.4s;
  width: 400px;
}

.cart:hover {
  transform: translateY(-10px);
  border-color: #2563eb;
}

.icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.cart p {
  color: #94a3b8;
  margin-top: 10px;
  line-height: 1.9;
}

.services a {
  width: 100%;
  margin-top: 20px;
  text-decoration: none;
  color: #2563eb;
  transition: 0.5s;
}

.services a:hover {
  color: #3b82f6;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature {
  background: #111827;
  padding: 25px;
  border-radius: 16px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.contact-form,
.contact-info {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 30px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-box label {
  color: #fff;
  font-weight: 500;
}

.input-box input,
.input-box textarea {
  width: 100%;
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  outline: none;
  transition: 0.3s;
}

.input-box input:focus,
.input-box textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.input-box textarea {
  min-height: 180px;
  resize: vertical;
}

.submit-btn {
  background: linear-gradient(135deg, #3b82f6, #2463eb);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.submit-btn:hover {
  transform: translateY(-3px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-info > div {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-info > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-info h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
}

.contact-info p {
  margin-top: 12px;
  margin-right: 35px;
  line-height: 2;
  color: #94a3b8;
}

.contact-box {
  display: flex;
  gap: 15px;
}

.contact-box img {
  width: 20px;
}

footer {
  padding: 20px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

footer p {
  color: #fff;
  opacity: 0.8;
}

footer a {
  text-decoration: none;
  color: #2563eb;
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero img {
    width: 80%;
  }

  .stats,
  .features {
    grid-template-columns: 1fr;
  }

  .cart {
    width: 90%;
  }

  .menu-toggle {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    color: white;
  }

  nav ul {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    background: #111827;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    padding-top: 50px;
    transition: 0.4s;
  }

  nav ul.active {
    right: 0;
  }

  .hero-content {
    margin-top: 6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hero-text {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .hero-content .btns {
    margin: 10px auto;
  }

  .discover__grid {
    grid-template-columns: 1fr;
  }

  .discover__card img {
    height: 220px;
  }

  .discover__card h4 {
    font-size: 1.2rem;
  }

  .services-cart {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .contact {
    flex-direction: column;
    width: 90%;
    margin: 0 auto;
  }

  .contact .line {
    width: 90%;
    height: 2px;
    margin: 10px auto;
  }

  .contact-info {
    width: 100%;
    padding-right: 0;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-form,
  .contact-info {
    width: 100%;
    padding: 20px;
  }

  .contact-info p {
    margin-right: 0;
  }

  .services a {
    color: black;
  }

  footer a {
    color: black;
  }
}

.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  will-change: transform, opacity;
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

.delay-1 {
  transition-delay: 0.15s;
}
.delay-2 {
  transition-delay: 0.3s;
}
.delay-3 {
  transition-delay: 0.45s;
}

.discover__card,
.cart,
.feature,
.stat-card {
  position: relative;
  overflow: hidden;
}

.discover__card::before,
.cart::before,
.feature::before,
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transition: 0.8s;
}

.discover__card:hover::before,
.cart:hover::before,
.feature:hover::before,
.stat-card:hover::before {
  right: 150%;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #030712;
  overflow: hidden;
}
.background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black, transparent 90%);
}
.background::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, #2563eb80 0%, transparent 25%),
    radial-gradient(circle at 80% 20%, #7c3aed80 0%, transparent 25%),
    radial-gradient(circle at 50% 80%, #06b6d480 0%, transparent 25%);
  filter: blur(80px);
  animation: aurora 15s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% {
    transform: translate(-5%, -5%) scale(1);
  }
  50% {
    transform: translate(5%, 5%) scale(1.2);
  }
  100% {
    transform: translate(-3%, 8%) scale(1.1);
  }
}
.glow-1,
.glow-2 {
  position: fixed;
  border-radius: 999px;
  filter: blur(120px);
  z-index: -1;
}
.glow-1 {
  width: 400px;
  height: 400px;
  background: #2563eb;
  top: 10%;
  left: -100px;
  animation: float 10s infinite alternate;
}
.glow-2 {
  width: 500px;
  height: 500px;
  background: #7c3aed;
  bottom: -100px;
  right: -100px;
  animation: float 14s infinite alternate-reverse;
}
@keyframes float {
  to {
    transform: translateY(-100px) translateX(50px);
  }
}




