@import url('https://fonts.googleapis.com/css2?family=Vazirmatn&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    direction: rtl;
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.7;
}

.header {
    position: relative;
    background-color: #87CEEB; /* آبی آسمانی */
    color: #fff;
    padding: 20px 20px 20px 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 150px;
    width: 150px;
    object-fit: contain; /* این باعث می‌شه لوگو وسط بمونه کامل */
    border-radius: 50%;
    background-color: #fff;
    padding: 4px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.header h1 {
    margin-right: 100px;
    font-size: 1.8rem;
}

.navbar {
    display: flex;
    gap: 20px;
}

.navbar a {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
    padding: 0 15px;
    font-size: 1.4rem;  /* بزرگتر برای هماهنگ شدن با لوگو */
    transition: all 0.3s ease;
}

.navbar a:hover {
    color: #0055aa;
    transform: scale(1.2);
}

.hero {
    position: relative;
    background-image: url('../background.jpg');
    background-size: cover;
    background-position: center 80%; /* میاد بالای عکس رو بیشتر نشون می‌ده */
    background-repeat: no-repeat;
    min-height: 500px;  /* ارتفاعو بیشتر کن که عکس بیشتر دیده بشه */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    font-size: 1.7rem;
    padding: 80px 20px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4); /* این باعث می‌شه عکس بک‌گراند تیره و کمرنگ باشه */
    z-index: 1;
}

.hero h2 {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 5px rgba(0,0,0,0.7);
}
.section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section h2 {
    color: #6db443;
    margin-bottom: 20px;
    border-bottom: 2px solid #6db443;
    display: inline-block;
    padding-bottom: 5px;
}

.services ul {
    list-style: disc;
    padding-right: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.img-placeholder {
    background-color: #ccc;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    border-radius: 8px;
}

.footer {
    background-color: #eee;
    color: #777;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
}

.section.gallery h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #003366;
}

.section.gallery h3 {
    font-size: 1.4rem;
    margin: 20px 0 10px;
    color: #555;
}

/* تیترهای اصلی صفحات به جز خانه */
.section h2 {
    font-size: 2rem;
    margin: 30px 0;
    color: #003366;
    text-align: center;
}

/* اگر صفحاتت h3 دارن (توضیحاتی زیر تیتر اصلی) */
.section h3 {
    font-size: 1.4rem;
    margin: 20px 0 10px;
    color: #555;
    text-align: center;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.woff2') format('woff2');
}
body {
    font-family: 'Vazir', sans-serif;
}

.contact {
  padding: 40px 20px;
  background-color: #f9f9f9;
  direction: rtl;
}

.contact h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
}

.contact-flex {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
}

.contact-list {
  list-style: none;
  padding: 0;
  font-size: 18px;
  margin-top: 10px;
}

.contact-list li {
  margin-bottom: 15px;
  font-size: 18px;
  text-align: right;
}

/* ایموجی کیوت و متحرک */
.emoji {
  font-size: 24px;
  display: inline-block;
  animation: float 2.5s ease-in-out infinite;
  margin-left: 8px;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* نقشه گرد و مدرن */
.map-wrapper iframe {
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .contact-flex {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .contact-list {
    text-align: center;
    font-size: 16px;
  }

  .map-wrapper iframe {
    width: 90%;
    height: 300px;
  }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin: auto;
}
.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}
.contact-form button {
    background-color: #3399ff;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

body {
    margin: 0;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.section.gallery {
    flex: 1;
    padding: 20px;
    text-align: center;
}

.footer {
    background-color: #f2f2f2;
    text-align: center;
    padding: 10px;
    margin-top: auto;
}

/* منوی همبرگری */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    left: 20px;
}

.navbar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .navbar {
        display: none;
        flex-direction: column;
        background-color: #fff;
        padding: 10px;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .navbar a {
        padding: 10px;
        border-bottom: 1px solid #ccc;
    }

    .navbar.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

.video-container {
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.video-container {
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}
