* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0f172a;
  color: #f1f5f9;
  transition: all 0.3s ease;
}

body.light {
  background: linear-gradient(200deg, rgb(181, 200, 227), rgb(226, 232, 240));
  color: #0f172a;
}
/* ========== افکت هدر شناور ========== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #1e293b;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: nowrap; /* مهم: اجازه نده آیتم‌ها به خط بعد برن */
    gap: 1rem;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

body.light header {
  background-color: #94a3b8;
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap; /* جلوگیری از شکستن لوگو */
}

body.light .logo {
  background: linear-gradient(135deg, #1e293b, #4b5563);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ========== منوی اصلی (دسکتاپ) ========== */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: nowrap; /* مهم: منو همیشه یک خطی بمونه */
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    white-space: nowrap; /* جلوگیری از شکستن کلمات */
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #3b82f6;
}

body.light .nav-links a {
    color: #1e293b;
}

body.light .nav-links a:hover {
    color: #ffffff;
}


/* ========== دکمه تم ========== */
.theme-btn {
    background: #334155;
    border: none;
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.4s;
    white-space: nowrap;
    flex-shrink: 0; /* جلوگیری از کوچک شدن دکمه */
}

.theme-btn:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
}

body.light .theme-btn {
    background-color: #cbd5e1;
}

body.light .theme-btn:hover {
    background-color: #475569;
}


/* ========== HERO SECTION ========== */
.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.light .hero {
  background: linear-gradient(200deg, rgb(181, 200, 227), rgb(226, 232, 240));
}

.hero-badge {
  background: rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(4px);
  padding: 0.4rem 1.2rem;
  border-radius: 60px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.5);
  display: inline-block;
  margin-bottom: 2rem;
}

body.light .hero-badge {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #1e293b;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  color: #cbd5e6;
  transition: all 0.3s ease;
}

body.light .hero p {
  color: #0f172a;
}

/* ========== دکمه‌ها ========== */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin: 1rem 0 2rem;
}

.btn-primary {
  background: linear-gradient(95deg, #3b82f6, #2563eb);
  padding: 0.9rem 2rem;
  border-radius: 48px;
  font-weight: 700;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-primary:hover {
  transform: translateY(-4px);
  background: linear-gradient(95deg, #2563eb, #1d4ed8);
  box-shadow: 0 15px 28px rgba(59, 130, 246, 0.4);
}

body.light .btn-primary {
  box-shadow: 0 8px 20px rgba(45, 55, 71, 0.3);
  color: #0f172a;
  background: linear-gradient(135deg, #aac3e3, #636b74);
}

body.light .btn-primary:hover {
  transform: translateY(-5px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #3b82f6;
  padding: 0.9rem 2rem;
  border-radius: 48px;
  font-weight: 600;
  color: #e2e8ff;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  background: rgba(59, 130, 246, 0.15);
  transform: translateY(-3px);
  border-color: #60a5fa;
}

body.light .btn-outline {
  color: #0f172a;
  border: 1.5px solid #2b3647;
}

body.light .btn-outline:hover {
  background: rgba(53, 63, 76, 0.15);
  transform: translateY(-3px);
  border-color: #333f4e;
}

/* ========== WHY EMPIRETECH ========== */
.features2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.features {
  padding: 4rem 2rem;
  text-align: center;
}

.features i {
  color: #3b82f6;
  margin-right: 10px;
  font-size: 2rem;
}

.features-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
/************feature card*****************/
.feature-card {
  background-color: #1e293b;
  padding: 2rem;
  border-radius: 24px;
  width: 250px;
  
  /* ========== اضافه کن ========== */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px -5px rgb(120, 115, 181);
}
body.light .features {
  background: linear-gradient(200deg, rgb(181, 200, 227), rgb(226, 232, 240));
}

body.light .features i {
  color: #636b74;
}

body.light .feature-card {
  background: linear-gradient(135deg, #94a3b8, #e2e8f0);
}

body.light .feature-card:hover {
  box-shadow: 0 5px 5px rgb(1, 1, 1);
}

.feature-card i {
  font-size: 2.5rem;
  color: #3b82f6;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

body.light .feature-card i {
  color: #636b74;
}

/* ========== PREVIEW SECTION ========== */
.preview-section {
  padding: 3rem 2rem 4rem;
  background: #0b0f1c;
}

body.light .preview-section {
  background: linear-gradient(200deg, rgb(181, 200, 227), rgb(226, 232, 240));
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.section-title i {
  color: #3b82f6;
  margin-right: 10px;
}

body.light .section-title i {
  color: #1e293b;
}

.preview-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.preview-item {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 2rem;
  padding: 1.8rem;
  width: 200px;
  text-align: center;
  border: 1px solid #334155;
  cursor: pointer;
  
  /* ========== اینجا box-shadow رو هم اضافه کن ========== */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-item:hover {
  border-color: #3b82f6;
  transform: scale(1.03);
  background: #1e293b;
  box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.4); /* ← این box-shadow */
}

body.light .preview-item {
  background: linear-gradient(135deg, #94a3b8, #e2e8f0);
  border-color: #cbd5e1;
}

body.light .preview-item:hover {
  box-shadow: 0 5px 5px rgb(1, 1, 1);
}

.preview-item i {
  font-size: 3rem;
  color: #60a5fa;
  margin-bottom: 1rem;
  transition: color 0.3s ease, transform 0.3s ease; /* ← اضافه کن */
}

.preview-item:hover i {
  color: #3b82f6;
  transform: scale(1.1) rotate(-5deg);
}

body.light .preview-item i {
  color: #636b74;
}

.preview-item h4 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.preview-item .small-price {
  font-size: 0.85rem;
  color: #94a3b8;
}

body.light .preview-item .small-price {
  color: #475569;
}

/* ========== فوتر ========== */
footer {
  transition: 0.3s;
  text-align: center;
  padding: 2rem;
  background-color: #1e293b;
}

body.light footer {
  background-color: #cbd5e1;
}

.special-thanks {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 1rem;
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
  background: rgba(59, 130, 246, 0.05);
}

body.light .special-thanks {
  border-color: #cbd5e1;
  background: rgba(59, 130, 246, 0.03);
}

.special-thanks i {
  color: #ef4444;
  margin: 0 8px;
  animation: heartBeat 1.5s ease infinite;
}

.special-thanks p {
  display: inline-block;
  font-size: 0.95rem;
  font-style: italic;
  color: #cbd5e1;
}

.special-thanks h6 {
  display: inline-block;
  font-size: 0.95rem;
  font-style: italic;
  color: #cbd5e1;
}

body.light .special-thanks p,
body.light .special-thanks h6 {
  color: #151515;
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #3b82f6;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 99;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #2563eb;
  transform: translateY(-3px);
}

body.light .back-to-top {
  background: #475569;
  color: white;
}

body.light .back-to-top:hover {
  background: #1e293b;
}

/* ========== دکمه همبرگر (موبایل) ========== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
}

body.light .menu-toggle {
    color: #1e293b;
}
/* ========== منوی موبایل ========== */
.menu {
    display: none;
    position: fixed;
    top: 70px;
    right: -250px;
    background: #1e293b;
    backdrop-filter: blur(10px);
    flex-direction: column;
    width: 220px;
    padding: 1rem 0;
    border-radius: 16px 0 0 16px;
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: right 0.3s ease;
    list-style: none;
    margin: 0;
}

body.light .menu {
    background: #94a3b8;
}

.menu.active {
    display: flex;
    right: 0;
}

.menu li {
    width: 100%;
}

.menu a {
    display: block;
    padding: 12px 24px;
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
}

body.light .menu a {
    color: #0f172a;
}

.menu a:hover {
    background: #3b82f6;
    color: white;
    padding-left: 32px;
}

/* ========== ANIMATION ========== */
.animate-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.animate-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== ریسپانسیو (تبلت و موبایل) ========== */
@media (max-width: 992px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 5%;
    }
    
    .nav-links {
        display: none; /* منوی دسکتاپ رو مخفی کن */
    }
    
    .menu-toggle {
        display: block; /* دکمه همبرگر رو نشون بده */
        order: 3;
    }
    
    .theme-btn {
        order: 2;
    }
    
    .logo {
        font-size: 1.3rem;
        order: 1;
    }
    
    .menu {
        display: flex; /* منوی موبایل رو فعال کن */
    }
}

/* ========== TOP MESSAGE ========== */
.top-message {
  max-width: 1200px;
  margin: 20px auto;
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  animation: slideDown 0.35s ease;
}

.top-message.success {
  background: linear-gradient(135deg, #e9f9ef, #dff7e8);
  color: #146c43;
  border-color: #b7e4c7;
}

.top-message.error {
  background: linear-gradient(135deg, #fdecec, #fbe2e2);
  color: #b42318;
  border-color: #f5b5b5;
}

.top-message i {
  font-size: 18px;
  flex-shrink: 0;
}

.top-message span {
  line-height: 1.6;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

