/* ===== IMPORT FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;900&display=swap');

/* ===== VARIABLES ===== */
:root {
  --primary: #0a7a6c;
  --primary-light: #00d9a6;
  --primary-dark: #053c36;
  --accent: #00a8ff;

  --bg: #edf7f5;
  --card-bg: rgba(255, 255, 255, 0.95);

  --text: #1a1a1a;
  --text-light: #666;

  --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.16);

  --radius: 24px;

  --transition: all 0.35s ease;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ===== BODY ===== */
body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.9;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #edf2f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to bottom,
    var(--primary),
    var(--accent)
  );
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,100% {
    box-shadow: 0 0 0 0 rgba(0,217,166,0.4);
  }

  50% {
    box-shadow: 0 0 0 20px rgba(0,217,166,0);
  }
}

/* ========================================================= */
/* ====================== HEADER ============================ */
/* ========================================================= */

header {
  position: relative;

  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      rgba(2, 14, 22, 0.76),
      rgba(6, 55, 65, 0.68),
      rgba(0, 120, 105, 0.55)
    ),
    url('/images/2-25.jpg');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  overflow: hidden;

  text-align: center;

  color: white;
}

/* GRID EFFECT */
header::before {
  content: '';

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top right,
      rgba(0,255,200,0.18),
      transparent 35%
    ),

    radial-gradient(
      circle at bottom left,
      rgba(0,170,255,0.15),
      transparent 40%
    ),

    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:
    auto,
    auto,
    40px 40px,
    40px 40px;

  z-index: 1;
}

/* LIGHT EFFECT */
header::after {
  content: '';

  position: absolute;

  width: 900px;
  height: 280px;

  bottom: -120px;
  left: 50%;

  transform: translateX(-50%);

  background: radial-gradient(
    circle,
    rgba(0,255,200,0.22),
    transparent 70%
  );

  filter: blur(40px);

  z-index: 1;
}

/* HEADER CONTENT */
.header-content {
  position: relative;
  z-index: 5;

  max-width: 950px;

  padding: 20px;

  animation: fadeInUp 1s ease;
}

/* LOGO */
.logo {
  width: 130px;
  height: 130px;

  border-radius: 50%;

  object-fit: cover;

  margin-bottom: 30px;

  border: 4px solid rgba(255,255,255,0.3);

  box-shadow:
    0 0 25px rgba(0,255,200,0.35),
    0 10px 40px rgba(0,0,0,0.45);

  animation: float 3s ease-in-out infinite;
}

/* AIRSA TITLE */
header h1 {
  font-size: 74px;

  font-weight: 900;

  margin-bottom: 20px;

  letter-spacing: 2px;

  color: #fff;

  text-shadow:
    0 0 10px rgba(255,255,255,0.35),
    0 0 25px rgba(0,255,200,0.35),
    0 4px 20px rgba(0,0,0,0.8);
}

/* SUBTITLE */
header p {
  font-size: 24px;

  font-weight: 400;

  color: rgba(255,255,255,0.92);

  line-height: 2;

  margin-bottom: 45px;

  text-shadow:
    0 2px 10px rgba(0,0,0,0.6);
}

/* CTA BUTTON */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  padding: 16px 42px;

  border-radius: 50px;

  background: linear-gradient(
    45deg,
    #00d9a6,
    #00a8ff
  );

  color: white;

  text-decoration: none;

  font-size: 18px;
  font-weight: 700;

  transition: var(--transition);

  position: relative;

  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.15);

  box-shadow:
    0 10px 35px rgba(0,255,200,0.35);
}

.cta-button::before {
  content: '';

  position: absolute;

  top: 0;
  left: -100%;

  width: 100%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );

  transition: 0.6s;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.03);

  box-shadow:
    0 15px 45px rgba(0,255,200,0.45);
}

.cta-button:hover::before {
  left: 100%;
}

/* ========================================================= */
/* ====================== SECTIONS ========================== */
/* ========================================================= */

section {
  max-width: 1400px;

  margin: auto;

  padding: 110px 20px;
}

section h2 {
  text-align: center;

  margin-bottom: 65px;

  color: var(--primary);

  font-size: 42px;

  font-weight: 900;

  position: relative;
}

section h2::after {
  content: '';

  display: block;

  width: 90px;
  height: 5px;

  margin: 18px auto 0;

  border-radius: 20px;

  background: linear-gradient(
    to right,
    var(--primary),
    var(--accent)
  );
}

/* ========================================================= */
/* ====================== PRODUCTS ========================== */
/* ========================================================= */

.products {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 35px;
}

.product-card {
  background: var(--card-bg);

  border-radius: var(--radius);

  overflow: hidden;

  position: relative;

  transition: var(--transition);

  box-shadow: var(--shadow);

  border: 1px solid rgba(255,255,255,0.4);

  backdrop-filter: blur(12px);
}

.product-card:hover {
  transform: translateY(-10px);

  box-shadow: var(--shadow-hover);
}

.product-card::before {
  content: '';

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 5px;

  background: linear-gradient(
    to right,
    var(--primary),
    var(--accent)
  );

  transform: scaleX(0);

  transition: 0.4s;
}

.product-card:hover::before {
  transform: scaleX(1);
}

/* IMAGE */
.product-image {
  position: relative;

  height: 260px;

  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: 0.7s;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-image::after {
  content: 'مشاهده';

  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%) scale(0);

  background: rgba(0,0,0,0.65);

  color: white;

  padding: 12px 25px;

  border-radius: 40px;

  transition: 0.35s;

  opacity: 0;
}

.product-card:hover .product-image::after {
  transform: translate(-50%, -50%) scale(1);

  opacity: 1;
}

/* PRODUCT INFO */
.product-info {
  padding: 25px;
}

.product-info h3 {
  font-size: 24px;

  color: var(--primary);

  margin-bottom: 12px;

  font-weight: 800;
}

.product-desc {
  color: var(--text-light);

  font-size: 15px;

  margin-bottom: 16px;

  line-height: 1.8;

  min-height: 52px;
}

.product-price {
  color: var(--primary);

  font-size: 26px;

  font-weight: 900;

  margin-bottom: 20px;
}

/* VIEW BTN */
.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 14px;

  border-radius: 14px;

  text-decoration: none;

  color: white;

  font-weight: 700;

  background: linear-gradient(
    45deg,
    var(--primary),
    var(--accent)
  );

  transition: var(--transition);
}

.view-btn:hover {
  transform: translateY(-3px);

  box-shadow:
    0 10px 30px rgba(0,168,255,0.25);
}

/* ========================================================= */
/* ====================== ABOUT ============================= */
/* ========================================================= */

.about-section {
  background: linear-gradient(
    135deg,
    #ffffff,
    #eef9f7
  );

  border-radius: 30px;

  margin-top: 40px;

  position: relative;

  overflow: hidden;
}

.about-section::before {
  content: '☀';

  position: absolute;

  top: -40px;
  left: -20px;

  font-size: 220px;

  opacity: 0.04;
}

.about-section p {
  max-width: 850px;

  margin: auto;

  text-align: center;

  font-size: 18px;

  color: var(--text-light);

  line-height: 2.1;
}

.read-more {
  display: inline-flex;

  margin-top: 30px;

  padding: 14px 34px;

  border-radius: 40px;

  text-decoration: none;

  color: var(--primary);

  border: 2px solid var(--primary);

  font-weight: 700;

  transition: var(--transition);
}

.read-more:hover {
  background: var(--primary);

  color: white;
}

/* ========================================================= */
/* ====================== FOOTER ============================ */
/* ========================================================= */

footer {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary)
  );

  color: white;

  margin-top: 80px;

  padding: 70px 20px 30px;

  position: relative;

  overflow: hidden;
}

footer::before {
  content: '';

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 5px;

  background: linear-gradient(
    to right,
    var(--primary-light),
    var(--accent)
  );
}

.footer-content {
  max-width: 1200px;

  margin: auto;

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 40px;
}

.footer-section h3 {
  font-size: 22px;

  margin-bottom: 20px;

  font-weight: 800;
}

.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.86);

  text-decoration: none;

  margin-bottom: 14px;

  display: block;

  transition: 0.3s;
}

.footer-section a:hover {
  color: white;

  transform: translateX(-5px);
}

.copyright {
  text-align: center;

  margin-top: 50px;

  padding-top: 25px;

  border-top: 1px solid rgba(255,255,255,0.2);

  font-size: 14px;
}

/* ========================================================= */
/* ====================== HELPERS =========================== */
/* ========================================================= */

.loading,
.no-products,
.error {
  text-align: center;

  padding: 50px;

  color: var(--text-light);

  grid-column: 1 / -1;
}

/* ========================================================= */
/* ====================== MOBILE ============================ */
/* ========================================================= */

@media (max-width: 768px) {

  header {
    background-attachment: scroll;
  }

  .logo {
    width: 95px;
    height: 95px;
  }

  header h1 {
    font-size: 42px;
  }

  header p {
    font-size: 18px;
  }

  section {
    padding: 80px 18px;
  }

  section h2 {
    font-size: 32px;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .product-card:hover {
    transform: translateY(-5px);
  }

  .footer-content {
    text-align: center;
  }
}