/* General Styles */
* {
  margin: 0;
  padding: 0;
  text-decoration: none;
}


body {
  background-color: black;
  color: white;
  scroll-behavior: smooth; /* Fallback smooth scrolling */
}



.container {
  min-width: 320px; /* حداقل عرض (مناسب برای موبایل‌ها) */
  max-width: 1400px; /* حداکثر عرض برای نمایشگرهای بزرگ */
  width: 90%; /* عرض صفحه متناسب با اندازه نمایشگر */
  margin: 0 auto; /* مرکز‌چین کردن محتوا */
}

/*========== Font and typography ==========*/

html {
  font-family: "Inter", sans-serif;
  font-size: var(--fs-base); /* base font-size (0.85rem = 13.6px) */
  line-height: 1.8;
}

:focus {
  outline-offset: 4px;
}


:root {

  --white: hsl(0, 0%, 100%);

  
  --fs-base: 0.85rem;
  --fs-1: 1.875rem;
  --fs-2: 1.5rem;
  --fs-3: 1.25rem;
  --fs-4: 0.875rem;
  --fs-5: 0.75rem;

  /*========== spacing ==========*/
  --py: 5rem;
}

 

/* Header */
header {
  background-color: black;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: var(--fs-1);
  font-weight: 800;
}

/* استایل منو در حالت دسکتاپ */
.menu ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.menu ul li {
  margin: 0 15px;
}

.menu ul li a {
  color: gold;
  text-decoration: none;
  font-size: var(--fs-3);
  font-weight: 600;
}

.menu ul li a:hover {
  color: white;
}

/* استایل آیکن همبرگر */
.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: gold;
}

/* استایل منو در حالت موبایلی */
@media (max-width: 768px) {
  .hamburger {
    display: block; /* نمایش آیکن همبرگر */
  
  }

  .menu {
    display: none; /* منو به طور پیش‌فرض مخفی است */
    flex-direction: column; /* تغییر به ستونی (عمودی) */
    position: fixed; /* برای ثابت ماندن منو در بالای صفحه */
    top: 10%;
    right: 0;
    background-color: gold;
    width: auto;
    height: 100%; /* ارتفاع به اندازه صفحه */
    text-align: center;
    padding: 0% 0;
    z-index: 9999; /* اولویت بالاتر برای نمایش منو */
    transition: right 0.3s ease-in-out;
  }

  /* هنگامی که کلاس active اضافه می‌شود */
  .menu.active {
    display: flex; /* نمایش منو */;
    direction: rtl;
    
  }

  /* استایل برای آیتم‌های منو */
  .menu ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: center;
  }

  .menu ul li {
    padding: 5px;
    text-align: center;
    width: 100%; /* عرض هر آیتم منو 100% */
  }

  .menu ul li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 1.2em; /* اندازه فونت بزرگتر */
    display: block; /* لینک‌ها به صورت بلوک نمایش داده شوند */
    padding: 5px;
  }

  .menu ul li a:hover {
    color: white; /* رنگ تغییر در هنگام هاور */
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url('https://via.placeholder.com/1920x1080') no-repeat center center/cover;
}

.hero h1 {
  font-size: 4rem;
  color: rgb(255, 255, 255);
  margin-bottom: 20px;
  animation: fadeIn 2s ease-in-out; /* Fade-in effect for headline */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero p {
  font-size: 1.5rem;
  color: #ccc;
  margin-bottom: 40px;
  animation: fadeIn 2.5s ease-in-out; /* Delayed fade-in for subheadline */
}

.cta-button {
  background-color: gold;
  color: black;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #ffcc00;
  transform: scale(1.05); /* Slight zoom effect on hover */
}

.cta-button.secondary {
  background-color: transparent;
  border: 2px solid gold;
  color: gold;
}

.cta-button.secondary:hover {
  background-color: gold;
  color: black;
  transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Features Section */
.features {
  padding: 60px 0;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  color: gold;
  margin-bottom: 40px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.feature-card {
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid #444;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin: 20px 0;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card i {
  font-size: 2rem;
  color: gold;
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: #111;
  color: #aaa;
  text-align: center;
  padding: 20px;
}
