@font-face {
  font-family: 'YekanBakh';
  src: url('./fonts/YekanBakh-Hairline.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YekanBakh';
  src: url('./fonts/YekanBakh-Thin.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YekanBakh';
  src: url('./fonts/YekanBakh-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YekanBakh';
  src: url('./fonts/YekanBakh.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YekanBakh';
  src: url('./fonts/YekanBakh-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YekanBakh';
  src: url('./fonts/YekanBakh-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YekanBakh';
  src: url('./fonts/YekanBakh-Heavy.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YekanBakh';
  src: url('./fonts/YekanBakh-Fat.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #21aa58;
  --green-pale: #e8f8ef;
  --green-line: rgba(33, 170, 88, 0.12);
  --white: #ffffff;
  --text: #162b1f;
  --text-mid: #2ea864;
  --text-soft: #2ea864;
  --border: rgba(33, 170, 88, 0.12);
  --card: #ffffff;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: 'YekanBakh', sans-serif;
  background: var(--white);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
  overflow-y: auto;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--green-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--green-line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.7;
  z-index: 0;
}

.power-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

.power-lines svg {
  width: 100%;
  height: 120px;
  display: block;
}

.line {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
}

.line-1 {
  stroke: var(--green);
  animation: draw 2.8s ease forwards 0.2s;
}

.line-2 {
  stroke: var(--green);
  opacity: 0.5;
  animation: draw 3.2s ease forwards 0.6s;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 40px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(33, 170, 88, 0.16);
  border-radius: 28px;
  padding: 52px 56px 48px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.3s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

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

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

@keyframes pulse {

  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.9;
  }

  50% {
    transform: scaleX(1.15);
    opacity: 1;
  }
}

@keyframes grid-move {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 56px 56px, 56px 56px;
  }
}

.brand {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--green-pale);
}

.bolt {
  width: 56px;
  height: 56px;
  background: var(--green);
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bolt svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.company {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}

h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.sub {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.8;
}

.divider {
  width: 56px;
  height: 3px;
  background: var(--green-pale);
  border-radius: 100px;
  animation: pulse 2.6s ease-in-out infinite;
}

.content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.contact {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 16px;
  color: var(--text-mid);
}

.contact a {
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
}

.contact a:hover {
  opacity: 0.85;
}

.page-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 60px;
  min-height: 100vh;
}

.page-header {
  text-align: center;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.1s;
}

.tenders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.3s;
}

.tender-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.tender-card:hover {
  transform: translateY(-8px);
  border-color: var(--green);
  box-shadow: 0 16px 32px rgba(33, 170, 88, 0.08);
}

.tender-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tender-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-pale);
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.tender-badge.auction {
  color: #d97706;
  background: #fef3c7;
}

.tender-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 24px;
}

.tender-timer {
  display: flex;
  justify-content: space-between;
  background: var(--green-pale);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 24px;
  margin-top: auto;
}

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.time-box:not(:last-child)::after {
  content: ":";
  position: absolute;
  left: -2px;
  top: 0;
  font-size: 18px;
  color: var(--green);
  font-weight: bold;
}

.time-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 4px;
}

.time-label {
  font-size: 11px;
  color: var(--text-mid);
  font-weight: 500;
}

.expired-msg {
  color: #d97706;
  font-weight: 700;
  text-align: center;
  width: 100%;
  padding: 8px 0;
  font-size: 14px;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
}

.btn-download:hover {
  background: #1c8f49;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 170, 88, 0.25);
}

.btn-download svg {
  stroke-width: 2.5;
}

.tender-footer {
  padding: 16px 24px;
  border-top: 1px dashed var(--border);
  background: #fafafa;
}

.tender-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
}

.tender-date svg {
  color: var(--green);
}

@media (max-width: 500px) {
  .card {
    padding: 40px 28px 36px;
    border-radius: 20px;
  }

  .company {
    font-size: 14px;
  }

  h1 {
    font-size: 34px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    font-size: 13px;
    padding: 6px 12px;
    text-align: center;
    flex: 1;
  }

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

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 100px;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 100px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--green);
  background: var(--green-pale);
}

.nav-links a.active {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(33, 170, 88, 0.2);
}

@media (max-width: 768px) {
  .navbar {
    height: 64px;
  }
  
  .nav-links {
    gap: 4px;
    padding: 4px;
  }

  .nav-links a {
    font-size: 13px;
    padding: 7px 14px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    border-radius: 14px;
  }

  .nav-links a {
    font-size: 11px;
    padding: 8px 6px;
    flex: 1;
    text-align: center;
  }
}


.qa-container {
  max-width: 900px;
  margin: 24px auto 0;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

    .qa-wrapper {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 24px;
    }

    .qa-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .qa-header {
      display: flex;
      align-items: flex-start;
      gap: 16px;
    }

    .qa-icon {
      background: var(--green-pale);
      color: var(--green);
      padding: 12px;
      border-radius: 14px;
      flex-shrink: 0;
    }

    .qa-title {
      font-size: 18px;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 4px;
    }

    .qa-subtitle {
      font-size: 14px;
      color: var(--text-mid);
      line-height: 1.6;
    }

    .qa-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      background: var(--green);
      color: white;
      text-decoration: none;
      padding: 14px 28px;
      border-radius: 12px;
      font-weight: 700;
      transition: all 0.3s ease;
      width: fit-content;
    }

    .qa-button:hover {
      background: #1c8f49;
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(33, 170, 88, 0.2);
    }

    .qa-qr {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      background: #f8fafc;
      padding: 12px;
      border-radius: 16px;
      border: 1px solid var(--border);
    }

    .qa-qr img {
      width: 110px;
      height: 110px;

    }

    .qa-qr span {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-mid);
      text-transform: uppercase;
    }

    @media (max-width: 600px) {
      .qa-container {
        padding: 20px;
        border-radius: 16px;
        margin-left: 12px;
        margin-right: 12px;
      }
      .qa-wrapper {
        flex-direction: column-reverse;
        text-align: center;
      }
      .qa-header {
        flex-direction: column;
        align-items: center;
      }
      .qa-button {
        width: 100%;
      }
    }
