/* ========== تنظیمات کلی ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: #0f172a;
  color: #f1f5f9;
  transition: all 0.3s ease;
}

/* ========== تم لایت (روشن) ========== */
body.light {
  background: linear-gradient(200deg, #858ea0, #4b5360);
  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: linear-gradient(135deg, #475569, #7f8a99);
}

.logo {
  font-family: "Inter";
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.light .logo {
  font-family: "Inter";
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(135deg, #94a3b8, #e2e8f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========== دکمه همبرگر (موبایل) ========== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 1.8rem;
  cursor: pointer;
}

body.light .menu-toggle {
  color: #1e293b;
}

/* ========== منوی موبایل ========== */
.menu {
  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;
}

body.light .menu {
  background: #94a3b8;
}

.menu.active {
  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;
}

/* ========== دکمه تغییر تم ========== */
.theme-btn {
  background: #334155;
  border: none;
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.4s;
}

.theme-btn:hover {
  background-color: #2563eb;
  transform: translateY(-3px);
}

body.light .theme-btn {
  background-color: #cbd5e1;
  color: #1e293b;
}

body.light .theme-btn:hover {
  background-color: #475569;
  color: white;
}

/* ========== بخش بالایی صفحه Contact ========== */
.contact-header {
  text-align: center;
  padding: 1rem 1rem;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

body.light .contact-header {
  background: linear-gradient(135deg, #b0bed1, #475569);
}

.contact-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

body.light .contact-header h1 {
  color: #000000;
}

.contact-header p {
  color: #94a3b8;
}

body.light .contact-header p {
  color: #000000;
}

/* ========== کانتینر اصلی ========== */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* ========== بخش اطلاعات تماس (سمت راست) ========== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: #1e293b;
  padding: 1.5rem;
  border-radius: 20px;
  text-align: center;
  transition: 0.3s;
  border: 1px solid #334155;
}

body.light .info-card {
  background: linear-gradient(135deg, #94a3b8, #e2e8f0);
  border-color: #4d5259;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
}

.info-card i {
  font-size: 2rem;
  color: #3b82f6;
  margin-bottom: 1rem;
}

body.light .info-card i {
  color: #1e293b;
}

.info-card h3 {
  margin-bottom: 0.5rem;
}

.info-card p {
  color: #94a3b8;
}

body.light .info-card p {
  color: #0f172a;
}

/* ========== فرم تماس (سمت چپ) ========== */
.contact-form {
  background: #1e293b;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid #334155;
}

body.light .contact-form {
  background: linear-gradient(135deg, #94a3b8, #e2e8f0);
  border-color: #4d5259;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid #334155;
  background-color: #0f172a;
  color: #f1f5f9;
  font-size: 1rem;
  transition: 0.3s;
}

body.light .form-group input,
body.light .form-group textarea {
  background-color: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.submit-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.submit-btn:hover {
  background: #2563eb;
  transform: translateY(-3px);
}

body.light .submit-btn {
  background: linear-gradient(135deg, #aac3e3, #636b74);
  color: #1e293b;
}

body.light .submit-btn:hover {
  background: linear-gradient(135deg, #636b74, #475569);
  color: white;
}
/* ========== فوتر ========== */
footer {
  text-align: center;
  padding: 2.5rem 2rem;
  background-color: #1e293b;
  margin-top: 3rem;
  transition: 0.3s;
}

body.light footer {
  background-color: #8898ad;
}

.special-thanks {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
  background: rgba(59, 130, 246, 0.05);
}

body.light .special-thanks {
  color: #0f172a;
  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;
}

body.light .special-thanks p {
  color: #151515;
}

footer p:last-child {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  letter-spacing: 0.3px;
}

body.light footer p:last-child {
  color: #0f172a;
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
/* ========== دکمه برگشت به خانه ========== */
.Home {
  cursor: pointer;
  border: none;
  font-size: 18px;
  bottom: 30px;
  left: 40px;
  padding: 12px 28px;
  background-color: #3b82f6;
  color: #f8fafc;
  position: fixed;
  transition: 0.3s ease;
  border-radius: 40px;
  font-weight: bold;
  z-index: 100;
}

.Home:hover {
  background-color: #2563eb;
  transform: translateY(-3px);
}

body.light .Home {
  background-color: #94a3b8;
  color: #0f172a;
}

body.light .Home:hover {
  background-color: #475569;
  color: #cbd5e1;
}
/* ========== انیمیشن ========== */
.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: 768px) {
  .menu-toggle {
    display: block;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .contact-header h1 {
    font-size: 2rem;
  }

  .contact-header p {
    font-size: 0.9rem;
  }

  .info-card {
    padding: 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: 1.5rem 1rem;
  }

  .submit-btn {
    width: 100%;
    justify-content: center;
  }
}
/* ========== پیام موفقیت/خطا (بالای صفحه) ========== */
.top-message {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px 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);
  }
}
.notification-container {
  max-width: 600px;
  margin: 20px auto 0;
  padding: 0 20px;
  position: sticky;
  top: 80px;
  z-index: 1000;
}

.notification-message {
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.4s ease;
  position: relative;
}

.notification-success {
  background: #10b981;
  color: white;
  border: 1px solid #059669;
}

.notification-error {
  background: #ef4444;
  color: white;
  border: 1px solid #dc2626;
}

.notification-message i {
  font-size: 18px;
  color: white;
}

.notification-message span {
  flex: 1;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.7;
  padding: 0 5px;
  transition: opacity 0.2s;
}

.notification-close:hover {
  opacity: 1;
}



@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.response-message {
  width: 100%;
  padding: 15px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.response-success {
  background: #e9f9ef;
  color: #146c43;
  border: 1px solid #b7e4c7;
}

.response-error {
  background: #fdecec;
  color: #b42318;
  border: 1px solid #f5b5b5;
}
