body {
  background-color: #ededed;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ----- Navbar ----- */
.navbar {
  width: 90%;
  max-width: 900px;
  margin: 32px auto 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.55);
  border-radius: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding: 10px 28px;
  backdrop-filter: blur(10px);
}

.logo-box {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 34px;
  width: auto;
}

.thin-text {
  font-weight: 200;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;                /* بخش میانی navbar کش میاد */
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-size: 16px;
  font-weight: 400;
  transition: color .25s ease;
}

/*.nav-links a:hover {
  color: #4285F4;
}*/

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #222;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.25s ease;
  padding: 3px 0;
}

/* حالت Hover و Active */
.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  font-weight: 600;
  transform: translateY(-3px);
}

/* نقطه زیر لینک */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;           /* فاصله نقطه از متن */
  width: 6px;
  height: 6px;
  background-color: #1E7F8C;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s ease, bottom 0.25s ease;
}

/* وقتی هاور شد یا انتخاب شد، نقطه نمایان میشه */
.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a.active::after {
  opacity: 1;
  bottom: -2px;           /* یه ذره بالا میاد موقع ظاهر شدن */
}

.admin-btn {
  background: #222;
  color: #fff;
  font-weight: 500;
  border-radius: 22px;
  padding: 7px 28px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  transition: background .25s ease;
  margin-left: -14px; /* ← این خط دکمه رو یه ذره میاره سمت چپ */
}

.admin-btn:hover {
  background: #1E7F8C;
}

/* ----- Main Cards Container ----- */
.main-cards {
  display: flex;
  gap: 44px;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 100px;
  margin-top: 120px;
  flex-wrap: wrap;
}

/* ----- Individual Card ----- */
/* ===== Glassmorphic Card ===== */
.glass-card {
  width: 500px;            /* افقی مثل عکس نمونه */
  height: 300px;
  background: rgba(255, 255, 255, 0.15); /* پس‌زمینه شفاف روشن */
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25); /* حاشیه خیلی ظریف سفید */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* سایه خیلی نرم */
  backdrop-filter: blur(12px); /* افکت شیشه مات */
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #3e3e3e; /* رنگ متن خاکستری تیره برای هماهنگی */
  text-align: center;
  margin: 20px;
  transition: all 0.3s ease;
}

/* افکت Hover برای زنده بودن کارت */
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ===== داخل کارت ===== */
.glass-card img {
  width: 120px;
  margin-bottom: 15px;
  opacity: 0.9;
}

.glass-card h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #2f2f2f;
  letter-spacing: 0.3px;
}

.glass-card p {
  font-size: 14px;
  color: #555;
  margin-top: 8px;
  max-width: 300px;
  line-height: 1.6;
}

.glass-btn {
  background-color: #000;           /* بک‌گراند سیاه */
  color: #fff;                      /* متن سفید */
  border: none;                     /* بدون کادر اضافه */
  border-radius: 32px;              /* گردی هماهنگ با کارت */
  padding: 14px 32px;               /* ابعاد مناسب */
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;        /* افکت نرم برای hover */
  margin-top: 20px;
}

/* افکت Hover (فقط تغییر بک‌گراند) */
.glass-btn:hover {
  background-color: #1E7F8C;        /* روشن شدن بک‌گراند */
  color: #fff;                      /* و برعکس شدن رنگ متن */
}


.contact-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;   /* چسبیده به بالا */
    padding-top: 60px; 
  }

.contact-card {
    background: #fff;
    width: 360px;
    padding: 30px 25px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-card h2 {
    margin: 0;
    font-size: 22px;
}

.platform-name {
    font-size: 30px;
    font-weight: 900;
    margin: 6px 0 20px;
    color: #1E7F8C;
}

.logo-wrapper {
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
    border: 1px solid #000;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrapper img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.slogan {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.divider-dot {
    width: 10px;
    height: 10px;
    background: #1E7F8C;
    border-radius: 100%;
    margin: 4px auto;
}

.phone {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    margin-top: 4px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 18px 0;
}

.social-icons a {
    width: 28px;
    height: 28px;
}

.social-icons svg {
    width: 100%;
    height: 100%;
    fill: #222;
}

.address-title {
    font-weight: bold;
    margin-bottom: 6px;
    margin-top: 4px;
}

.address {
    font-size: 14px;
    color: #444;
}


/* حالت ریسپانسیو برای موبایل */
@media (max-width: 480px) {
  .glass-card {
    width: 100%;
    height: auto;
    padding: 25px 15px;
  }
  .glass-card img {
    width: 100px;
  }
}


.site-footer {
  position: fixed;              /* چسبوندن به پایین صفحه */
  bottom: 0;
  left: 0;
  width: 100%;                  /* پهنا کامل */
  background: rgba(255, 255, 255, 0.45); /* شیشه‌ای ملایم یا رنگ ساده */
  backdrop-filter: blur(10px);  /* افکت شیشه مات هماهنگ با تم کلی */
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.25); /* خط ظریف بالا */
  text-align: center;           /* وسط‌چین متن */
  padding: 10px 0;
  font-size: 14px;
  color: #333;
  z-index: 1000;                /* بالاتر از محتوا */
}

@media (max-width: 480px) {
  .main-cards {
    margin-top: 20px;
    margin-bottom: 100px;
    padding: 0 12px;
    gap: 10px;
  }

.glass-btn {
  padding: 12px 28px;               /* ابعاد مناسب */
  font-size: 16px;
  margin-top: 16px;
}  


}

/* برای جلوگیری از متن چسبیدن زیاد به کناره‌ها توی موبایل */
@media (max-width: 480px) {
  .site-footer {
    font-size: 13px;
    padding: 8px 0;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: #222;
  border-radius: 2px;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 999;
}

.mobile-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%) scale(0.95);
  width: 86%;
  max-width: 340px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  padding: 28px 24px;
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.mobile-menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin: 24px 0 32px;
}

.mobile-links a {
  all: unset;
  position: relative;
  text-decoration: none;
  color: #1b4533;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  transition: all .25s ease;
}

.mobile-links a:hover,
.mobile-links a.active {
  font-weight: 600;
  transform: translateY(-3px);
}

.mobile-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  width: 6px;
  height: 6px;
  background-color: #1E7F8C;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .25s ease, bottom .25s ease;
}

.mobile-links a:hover::after,
.mobile-links a.active::after {
  opacity: 1;
  bottom: -4px;
}

.close-btn {
  align-self: flex-start;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

.mobile-admin {
  width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  .nav-links,
  .admin-btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .admin-btn.mobile-admin {
    display: block;
  }

  .contact-container {
  margin-bottom: 100px;  
}
}