/* ===== Root Variables ===== */
:root {
  --main-gold: #d4af37;
  --hover-gold: #c89e2b;
  --bg-dark: #121212;
  --text-light: #f2f2f2;
  --card-radius: 16px;
  --transition-speed: 0.3s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
/* ===== Header Styles ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 30px; /* افزایش فضای بالا و پایین */
  min-height: 120px;  /* ارتفاع تضمینی برای جا دادن لوگو */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0; /* padding فقط به `header` می‌دیم */
  height: 100%; /* از header ارث ببره */
}

/* چپ: منوی همبرگری یا هیچی */
.header-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

/* وسط: لوگو همیشه وسط */
.logo-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.logo-img {
  max-height: 80px;
  height: auto;
  width: auto;
}

/* راست: دکمه ورود یا چیز دیگه */
.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.mobile-only {
  display: none;
}

/* ===== Responsive for Mobile ===== */
@media (max-width: 768px) {
  header {
    padding: 12px 1rem;
    overflow: hidden;
    min-height: 80px;
  }

  .header-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 8px 0;
    flex-wrap: nowrap;
    position: relative;
  }

  .header-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3000;
    gap: 6px;
  }

  .hamburger span {
    width: 24px;
    height: 3px;
    background-color: var(--main-gold);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
  }

  .logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }

  .logo-img {
    max-width: 80px;
    width: auto;
    max-height: 60px;
    height: auto;
    object-fit: contain;
    display: block;
    padding: 4px 0;
  }

  .header-right {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  .hero.no-login {
    padding-top: 120px !important;
  }
}
.login-btn,
.hero-start {
  background: linear-gradient(to left, var(--main-gold), var(--hover-gold));
  color: #000;
  padding: 12px 30px;
  border-radius: var(--card-radius);
  font-weight: bold;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s ease-in-out,
    box-shadow 0.3s ease-in-out,
    background 0.3s ease-in-out;
}

.login-btn:hover,
.hero-start:hover {
  background: var(--hover-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4), 0 4px 10px rgba(0, 0, 0, 0.3);
}


/* ===== Hamburger Menu ===== */
.hamburger {
  display: none;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--main-gold);
  border-radius: 2px;
  transition: transform var(--transition-speed);
}

/* ===== Mobile Menu (Updated for Polish Look) ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 85px;
  right: 15px;
  width: 260px;
  background: var(--bg-dark);
  flex-direction: column;
  padding: 2rem 1.4rem;
  transform: translateX(120%);
  transition: transform var(--transition-speed) ease-in-out;
  transform-origin: right center;
  z-index: 2000;
  direction: rtl;
  will-change: transform;
  backface-visibility: hidden;
  border-radius: 18px;
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(212, 175, 55, 0.15);
  overflow: hidden;
  max-height: calc(100vh - 100px);
}

/* ✅ وقتی منو باز شده */
.mobile-menu.active {
  display: flex !important;
  transform: translateX(0%);
}

/* ✅ لینک‌ها در حالت عادی مخفی و انیمیشنی */
.mobile-menu a {
  font-weight: bold;
  color: var(--main-gold);
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
  padding: 10px 16px;
  border-radius: 12px;
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  transition:
    color var(--transition-speed),
    background var(--transition-speed),
    transform var(--transition-speed),
    opacity var(--transition-speed);
}

/* ✅ زمانی که منو فعال شده لینک‌ها به نرمی ظاهر بشن */
.mobile-menu.active a {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* ✅ حالت hover روی لینک‌ها */
.mobile-menu a:hover {
  color: var(--hover-gold);
  background: rgba(212, 175, 55, 0.07);
  transform: translateX(-2px);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(to bottom, #121212, #121212);
  padding: 180px 2rem 1rem;
  text-align: center;
}
.hero.no-login {
  padding-top: 80px;
  padding-bottom: 1rem;
}

@media (max-width: 480px) {
  .hero.no-login {
    padding-top: 60px;
    padding-bottom: 1rem; 
  }
}

.hero .login-btn {
  width: 90%;
  max-width: 240px;
  margin: 0 auto;
  display: block;
}

/* ===== Main Section ===== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 7rem;
}
.section-title {
  text-align: center;
  color: var(--main-gold);
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* ===== Country Cards ===== */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}
.country-card {
  background: rgba(255,255,255,0.05);
  border-radius: var(--card-radius);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.country-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 32px var(--main-gold);
}
.country-header {
  padding: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.country-name {
  color: var(--main-gold);
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: .35rem;
}
.country-details {
  padding: 1rem 1.5rem 2rem;
}
.country-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.country-features li {
  position: relative;
  padding-right: 1.4rem;
  margin-bottom: .7rem;
}
.country-features li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--main-gold);
  font-size: 1.3rem;
  top: .15rem;
}
.country-extra {
  margin-top: 1.3rem;
  font-style: italic;
  color: #bbb;
}

/* ===== Footer ===== */
footer {
  background: #0c0c0c;
  color: #aaa;
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid #222;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

/* ===== Sticky Footer Icons ===== */
.sticky-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 15, 15, 0.85);
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  display: flex;
  gap: 1rem;
  z-index: 9999;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* دکمه‌ها */
.sticky-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--main-gold);
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.sticky-footer a:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px var(--main-gold);
}

/* آیکون داخل دکمه */
.sticky-footer img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
  transition: filter 0.3s ease;
}

/* ===== Responsive (Mobile) Adjustments ===== */
@media (max-width: 480px) {
  .sticky-footer {
    padding: 0.5rem 0.8rem;
    gap: 0.6rem;
    bottom: 16px;
  }

  .sticky-footer a {
    width: 34px;
    height: 34px;
  }

  .sticky-footer img {
    width: 18px;
    height: 18px;
  }
}

/* ===== Custom Button Overrides ===== */

/* دکمه ورود در هدر */
.header-login {
  margin-right: 1.5rem;
  padding: 10px 24px;
  font-size: 0.95rem;
}

/* دکمه وسط صفحه - hero */
.hero-start {
  display: block;
  margin: 0 auto;
  max-width: 240px;
  width: 90%;
  font-size: 1.1rem;
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .header-login {
    display: none !important;
    
  }

  .hero-start {
    display: block !important;
    margin-top: 1rem;
  }

  .hero {
    padding-top: 80px !important; /* کاهش فضای خالی بالا */
  }
}

/* ===== Responsive Logic ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 1rem;
    height: auto; /* 👈 اجازه می‌دیم ارتفاع با محتوا تنظیم بشه */
    position: relative;
  }

  .logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
  }

  .logo-img {
    max-width: 90px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .hamburger {
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 4000;
    gap: 6px;
  }

  .hamburger span {
    width: 24px;
    height: 3px;
    background-color: var(--main-gold);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
  }

  .desktop-only,
  .nav-menu,
  .header-right {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  .hero.no-login {
    padding-top: 120px !important;
  }

/* ===== Mobile Menu (Updated for Polish Look) ===== */
.mobile-menu {
  display: none;
  position: fixed;
 top: unset;
margin-top: 100px;
  right: 15px;
  width: 260px;
  background: var(--bg-dark);
  flex-direction: column;
  padding: 2rem 1.4rem;
  transform: translateX(120%);
  transition: transform 0.3s ease-in-out;
  transform-origin: right center;
  z-index: 2000;
  direction: rtl;
  will-change: transform;
  backface-visibility: hidden;
  border-radius: 18px;
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(212, 175, 55, 0.15);
  overflow-y: auto;
  max-height: calc(100vh - 100px);
}

/* ✅ وقتی فعال بشه */
.mobile-menu.active {
  transform: translateX(0);
  display: flex;
}

.mobile-menu a {
  font-weight: bold;
  color: var(--main-gold);
  font-size: 1.1rem;
  margin-bottom: 1.6rem;
  padding: 10px 16px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.mobile-menu a:hover {
  background: rgba(212, 175, 55, 0.07);
}
}
/* ===== Responsive (Mobile) Adjustments ===== */
@media (max-width: 480px) {
  .hero {
    padding-top: 100px !important;
  }
}
/* ===== Mobile Menu Overlay ===== */
.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
@media (max-width: 768px) {
  .mobile-menu .login-btn {
    display: block !important;
    background-color: var(--main-gold) !important;
    color: #111 !important;
    font-size: 1.1rem !important;
    border: none !important;
    text-align: center !important;
    padding: 12px 20px !important;
    font-weight: bold !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2)
  }

  .mobile-menu .login-btn:hover {
    background-color: var(--hover-gold) !important;
  }
}
.hero .hero-start {
  margin-bottom: 0 !important;
}