* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #1a130e;
  min-height: 100vh;
  background-image: linear-gradient(145deg, rgba(20, 15, 10, 0.70) 0%, rgba(40, 28, 18, 0.55) 100%),
                    url('../images/back-desktop.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  body {
    background-image: linear-gradient(145deg, rgba(20, 15, 10, 0.75) 0%, rgba(40, 28, 18, 0.60) 100%),
                      url('../images/back-mobile.jpg');
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  body {
    background-image: linear-gradient(145deg, rgba(20, 15, 10, 0.70) 0%, rgba(40, 28, 18, 0.55) 100%),
                      url('../images/back-tablet.jpg');
  }
}

.main-card {
  max-width: 1100px;
  width: 100%;
  background: rgba(44, 33, 24, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 3.5rem 3.5rem 2.5rem 2.5rem;
  padding: 2.8rem 2.2rem;
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.75), inset 0 1px 2px rgba(255, 215, 170, 0.10);
  border: 1px solid rgba(220, 180, 130, 0.15);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.logo-container {
  text-align: center;
  margin-bottom: 0.5rem;
}

.logo-container img {
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(220, 180, 130, 0.3);
  transition: transform 0.3s ease;
  object-fit: cover;
}

.logo-container img:hover {
  transform: scale(1.05) rotate(-3deg);
}

.brand h1 {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #f5e3c9;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(200, 150, 90, 0.15);
  line-height: 1.2;
}

.brand h1 span {
  display: inline-block;
  background: linear-gradient(135deg, #f7d9b0, #e6b882);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(230, 170, 100, 0.20);
}

.brand .sub {
  font-size: 1.1rem;
  color: #dac09a;
  background: rgba(60, 45, 30, 0.35);
  display: inline-block;
  padding: 0.3rem 2rem;
  border-radius: 40px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(220, 180, 130, 0.12);
  margin-top: 0.2rem;
}

.btn-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(60, 45, 32, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(220, 180, 130, 0.18);
  border-radius: 2.2rem;
  padding: 1.5rem 0.8rem;
  text-decoration: none;
  color: #f0e0cc;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.30);
  text-align: center;
  line-height: 1.6;
  min-height: 130px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-custom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(240, 200, 150, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 2.2rem;
}

.btn-custom .icon-img {
  width: 80px;
  height: 80px;
  margin-bottom: 0.5rem;
  border-radius: 16px;
  object-fit: cover;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
  border: 2px solid rgba(220, 180, 130, 0.15);
}

.btn-custom .label {
  font-size: 1rem;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.btn-custom .sub-label {
  font-size: 0.70rem;
  opacity: 0.7;
  margin-top: 0.1rem;
  font-weight: 300;
}

.btn-custom:hover {
  background: rgba(210, 165, 110, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: #eac394;
  box-shadow: 0 14px 30px -6px rgba(180, 120, 60, 0.50), 0 0 0 1px rgba(235, 195, 140, 0.25);
  transform: translateY(-6px) scale(1.02);
  color: #fff6e5;
}

.btn-custom:hover .icon-img {
  transform: scale(1.12) rotate(-2deg);
  filter: drop-shadow(0 8px 16px rgba(180, 120, 60, 0.5));
  border-color: rgba(235, 195, 140, 0.5);
}

.btn-custom:hover::before {
  opacity: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.8rem;
  padding: 0.8rem 2rem;
  background: rgba(60, 45, 32, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(220, 180, 130, 0.12);
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #dac09a;
  font-size: 0.95rem;
  flex-wrap: wrap;
  width: 100%;
}

.address-row {
  font-size: 0.9rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px dashed rgba(220, 180, 130, 0.1);
}

.phones-row {
  font-size: 1rem;
  padding-top: 0.2rem;
}

.contact-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
}

.contact-text {
  color: #dac09a;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.3px;
  direction: rtl;
}

.contact-phone {
  color: #f3c89b;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  direction: ltr;
  display: inline-block;
  font-size: 1rem;
}

.contact-phone:hover {
  color: #fff6e5;
  transform: scale(1.05);
}

.contact-separator {
  color: rgba(220, 180, 130, 0.3);
  font-size: 1rem;
  margin: 0 0.2rem;
}

.social-floating-bar {
  position: fixed;
  bottom: 30px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  0% { transform: translateX(100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.social-float-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.social-float-link::after {
  content: attr(title);
  position: absolute;
  right: 60px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-family: 'Vazir', sans-serif;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-float-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.social-float-link:hover {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.3);
}

.social-float-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
  border-radius: 4px;
}

.social-float-link:hover .social-float-icon-img {
  transform: scale(1.1);
}

.enamad-box {
  position: fixed;
  bottom: 30px;
  left: 20px;
  z-index: 9999;
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  0% { transform: translateX(-100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.enamad-box a {
  display: block;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.enamad-box a:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.enamad-box img {
  display: block;
  border-radius: 8px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.footer-custom {
  margin-top: 1.5rem;
  text-align: center;
  color: #aa8f74;
  font-size: 0.85rem;
  border-top: 1px solid rgba(180, 140, 100, 0.10);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer-custom .highlight {
  color: #dbbc94;
  font-weight: 400;
}

@media (max-width: 768px) {
  .main-card { padding: 2rem 1.5rem; border-radius: 2.5rem; }
  .brand h1 { font-size: 2.5rem; }
  .btn-custom { min-height: 110px; padding: 1.2rem 0.5rem; font-size: 0.95rem; }
  .btn-custom .icon-img { width: 60px; height: 60px; }
  .contact-info { padding: 0.6rem 1.2rem; border-radius: 12px; }
  .contact-row { font-size: 0.85rem; }
  .address-row { font-size: 0.8rem; }
  .phones-row { font-size: 0.9rem; }
  .contact-phone { font-size: 0.9rem; }
  .social-floating-bar { bottom: 20px; right: 15px; gap: 8px; }
  .social-float-link { width: 45px; height: 45px; }
  .social-float-icon-img { width: 24px; height: 24px; }
  .social-float-link::after { display: none; }
  .enamad-box { bottom: 20px; left: 15px; }
  .enamad-box a { padding: 6px; }
  .enamad-box img { width: 60px; height: 60px; }
}

@media (max-width: 576px) {
  .main-card { padding: 1.5rem 0.8rem; border-radius: 2rem; }
  .brand h1 { font-size: 2rem; }
  .brand .sub { font-size: 0.9rem; padding: 0.2rem 1.2rem; }
  .btn-custom { min-height: 100px; padding: 0.9rem 0.3rem; font-size: 0.85rem; border-radius: 1.8rem; }
  .btn-custom .icon-img { width: 50px; height: 50px; }
  .btn-custom .sub-label { font-size: 0.60rem; }
  .contact-info { padding: 0.5rem 0.8rem; border-radius: 10px; margin-top: 1.2rem; gap: 0.3rem; }
  .contact-row { font-size: 0.75rem; gap: 0.3rem; }
  .address-row { font-size: 0.7rem; }
  .phones-row { font-size: 0.8rem; flex-wrap: wrap; justify-content: center; }
  .contact-phone { font-size: 0.8rem; }
  .social-floating-bar { bottom: 15px; right: 10px; gap: 6px; }
  .social-float-link { width: 40px; height: 40px; }
  .social-float-icon-img { width: 20px; height: 20px; }
  .enamad-box { bottom: 15px; left: 10px; }
  .enamad-box a { padding: 5px; }
  .enamad-box img { width: 50px; height: 50px; }
  .footer-custom { font-size: 0.70rem; padding-top: 1rem; }
}

@media (max-width: 400px) {
  .brand h1 { font-size: 1.6rem; }
  .main-card { padding: 1rem 0.5rem; }
  .btn-custom .icon-img { width: 40px; height: 40px; }
  .contact-info { padding: 0.4rem 0.6rem; }
  .contact-row { font-size: 0.65rem; }
  .address-row { font-size: 0.6rem; }
  .phones-row { font-size: 0.7rem; }
  .contact-phone { font-size: 0.7rem; }
  .social-floating-bar { bottom: 10px; right: 8px; gap: 5px; }
  .social-float-link { width: 35px; height: 35px; }
  .social-float-icon-img { width: 18px; height: 18px; }
  .enamad-box { bottom: 10px; left: 8px; }
  .enamad-box a { padding: 4px; }
  .enamad-box img { width: 40px; height: 40px; }
}