@font-face {
  font-family: 'IRANSans';
  src: url('fonts/IRANSans-fanum.woff2') format('woff2'),  
       url('fonts/IRANSans-fanum.woff') format('woff'),
       url('fonts/IRANSans-fanum.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'IRANSans', 'Segoe UI', Tahoma, Arial, sans-serif;
  background: #ffffff;
  background-image: url('../images/bg.webp'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(21, 59, 9, 0.15);
  z-index: 1;
}

.container {
  margin-top: 100px;
  max-width: 600px;
  width: 100%;
  animation: fadeInUp 1s ease-out;
  position: relative;
  z-index: 2;
}

.logo {
  max-width: 200px;
  width: 100%;
  margin-bottom: 30px;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 400;
  color: #eceeec;
  margin-bottom: 10px;
  font-family: 'IRANSans', sans-serif;
}

.subtitle {
  font-size: 1.2rem;
  color: #dacbcb;
  margin-bottom: 50px;
  font-weight: 300;
  font-family: 'IRANSans', sans-serif;
}

.countdown-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(8, 46, 13, 0.9);
  color: #333;
  padding: 15px 12px;
  border-radius: 6px;
  min-width: 70px;
  border: 1px solid rgba(60, 130, 37, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.countdown-number {
  font-size: 2rem;
  font-weight: 200;
  display: block;
  margin-bottom: 3px;
  color: #3c8225;
  font-family: 'IRANSans', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.8rem;
  font-weight: 300;
  color: #666;
  text-transform: lowercase;
  font-family: 'IRANSans', sans-serif;
}

.menu-buttons {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding: 10px 0px;
  border-top: 1px solid #21311b;  
}

.menu-buttons a {
  color: #e2e7e1;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
  font-family: 'IRANSans', sans-serif;
}

.menu-buttons a:hover {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
  font-family: 'IRANSans', sans-serif;
  animation: underline 0.5s ease-in-out;
  color: #3c8225;
  cursor: pointer;
}

/* Popup Styles */
.pop-up {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.pop-up-content {
  background: #ffffff;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  margin: 20px;
}

.pop-up-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px 15px 25px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.pop-up-title h2 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #2c5530;
  margin: 0;
  font-family: 'IRANSans', sans-serif;
}

.pop-up-close {
  background: #0b301d;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: 'IRANSans', sans-serif;
}

.pop-up-close:hover {
  background: #c82333;
  transform: scale(1.1);
}

.pop-up-content p {
  padding: 20px 25px;
  line-height: 1.6;
  color: #555;
  font-size: 1rem;
  font-family: 'IRANSans', sans-serif;
  margin: 0;
}

/* Contact Information Styles */
.pop-up-content-phone,
.pop-up-content-email,
.pop-up-content-address {
  padding: 15px 25px;
  border-bottom: 1px solid #f0f0f0;
}

.pop-up-content-phone:last-child,
.pop-up-content-email:last-child,
.pop-up-content-address:last-child {
  border-bottom: none;
  padding-bottom: 25px;
}

.pop-up-content-phone a,
.pop-up-content-email a,
.pop-up-content-address a {
  display: block;
  color: #3c8225;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
  padding: 8px 0;
  transition: color 0.2s ease;
  font-family: 'IRANSans', sans-serif;
}

.pop-up-content-phone a:hover,
.pop-up-content-email a:hover,
.pop-up-content-address a:hover {
  color: #2c5530;
  text-decoration: underline;
}

.pop-up-content-phone a:before {
  content: "📞 ";
  margin-left: 8px;
}

.pop-up-content-email a:before {
  content: "✉️ ";
  margin-left: 8px;
}

.pop-up-content-address a:before {
  content: "📍 ";
  margin-left: 8px;
}

/* Popup Animation States */
.pop-up.show .pop-up-content {
  transform: translateY(0);
}

.pop-up-content {
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scroll for popup content */
.pop-up-content {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3c8225 #f0f0f0;
}

.pop-up-content::-webkit-scrollbar {
  width: 6px;
}

.pop-up-content::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.pop-up-content::-webkit-scrollbar-thumb {
  background: #3c8225;
  border-radius: 3px;
}

.pop-up-content::-webkit-scrollbar-thumb:hover {
  background: #2c5530;
}

/* Menu button hover effects */
.menu-buttons a {
  position: relative;
  transition: all 0.3s ease;
}

.menu-buttons a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3c8225;
  transition: width 0.3s ease;
}

.menu-buttons a:hover::after {
  width: 100%;
}


.footer {
  margin-top: auto;
  padding: 15px;
  color: #999;
  font-size: 0.9rem;
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-weight: 500;
  color: #3c8225;
  font-size: 1rem;
  font-family: 'IRANSans', sans-serif;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop - Horizontal background */
@media (min-width: 769px) {
  body {
    background-size: cover;
    background-position: center center;
  }
}

/* Mobile - Vertical background */
@media (max-width: 768px) {
  body {
    background-size: cover;
    background-position: center top;
  }
  
  .main-title {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .countdown-container {
    gap: 12px;
  }
  
  .countdown-item {
    min-width: 65px;
    padding: 12px 8px;
  }
  
  .countdown-number {
    font-size: 1.8rem;
  }
  
  .countdown-label {
    font-size: 0.75rem;
  }
  
  /* Mobile popup styles - bottom positioning */
  .pop-up {
    align-items: flex-end;
    justify-content: center;
  }
  
  .pop-up-content {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    margin: 0;
    max-height: 85vh;
  }
  
  .pop-up-title {
    padding: 18px 22px 12px 22px;
  }
  
  .pop-up-title h2 {
    font-size: 1.3rem;
  }
  
  .pop-up-content p {
    padding: 18px 22px;
    font-size: 0.95rem;
  }
  
  .pop-up-content-phone,
  .pop-up-content-email,
  .pop-up-content-address {
    padding: 14px 22px;
  }
}

@media (max-width: 480px) {
  body {
    background-size: cover;
    background-position: center top;
  }
  
  .main-title {
    font-size: 1.8rem;
  }
  
  .subtitle {
    font-size: 0.9rem;
  }
  
  .countdown-container {
    gap: 8px;
  }
  
  .countdown-item {
    min-width: 55px;
    padding: 10px 6px;
  }
  
  .countdown-number {
    font-size: 1.5rem;
  }
  
  .countdown-label {
    font-size: 0.7rem;
  }
  
  /* Mobile popup styles for small screens */
  .pop-up {
    align-items: flex-end;
    justify-content: center;
  }
  
  .pop-up-content {
    max-width: 100%;
    border-radius: 15px 15px 0 0;
    transform: translateY(100%);
    margin: 0;
    max-height: 90vh;
  }
  
  .pop-up-title {
    padding: 15px 20px 10px 20px;
  }
  
  .pop-up-title h2 {
    font-size: 1.2rem;
  }
  
  .pop-up-content p {
    padding: 15px 20px;
    font-size: 0.9rem;
  }
  
  .pop-up-content-phone,
  .pop-up-content-email,
  .pop-up-content-address {
    padding: 12px 20px;
  }
  
  .pop-up-content-phone a,
  .pop-up-content-email a,
  .pop-up-content-address a {
    font-size: 1rem;
  }
}