@font-face {
  font-family: 'pubfont';
  src: url('font/Iranian_Sans/Iranian Sans.otf') format('opentype'),
    url('font/Iranian_Sans/Iranian Sans.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  font-family: 'pubfont', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.6;
  color: #444;
  background-color: #F1E8D6;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header & Navigation */
header {
  width: 100%;
  background: linear-gradient(135deg, #6cace4 0%, #ffffff 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* تعریف انیمیشن برای افکت برق‌زدن */
@keyframes shine {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

/* اعمال انیمیشن به کلاس لوگو */
#logoimg {
  display: inline-block;
  animation: shine 2s infinite;
}
.logo {
  display: inline-block;
  animation: shine 2s infinite;
}

.logo {
  font-size: 1.9rem;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #6cace4;
}

#logoimg {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #6cace4;
  padding: 3px;
  background-color: #fff;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

#logoimg:hover {
  transform: scale(1.28) rotate(360deg);
  box-shadow: 0 0 20px rgba(108, 172, 228, 0.7);
  border-color: #ffffff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  padding-bottom: 5px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #6cace4;
  bottom: -8px;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: #6cace4;
}

/* Modern Hamburger Menu Styles */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  transition: transform 0.5s ease;
}

.menu-toggle span {
  display: block;
  background: #333;
  height: 4px;
  width: 35px;
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
  border-radius: 3px;
}

.menu-toggle:hover span {
  background: #6cace4;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Modern Mobile Navigation Menu */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    position: fixed;
    top: 80px;
    right: -100%;
    width: 85%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: right 0.4s ease;
    gap: 1.5rem;
  }

  nav ul.active {
    right: 15px;
  }

  nav ul li a {
    font-size: 1.3rem;
    color: #333;
  }

  nav ul li a:hover {
    color: #6cace4;
  }

  .menu-toggle {
    display: flex;
  }
}

/* Hero Slider Styles */
#hero {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.slider {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
}

.slide-text {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  color: white;
  text-align: right;
  max-width: 600px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.slide-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-text .btn {
  display: inline-block;
  padding: 12px 30px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.slide-text .btn:hover {
  background: #0056b3;
}

.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 10;
}

.slider-controls button {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.slider-controls button:active {
  transform: scale(0.95);
}

.slider-controls i {
  color: white;
  font-size: 1.8rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slider-indicators {
  position: absolute;
  bottom: 20px;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.lower-indicators {
  bottom: 5px;
}

.indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.indicator.active {
  background: white;
  border-color: white;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  #hero {
    height: 400px;
  }

  .slide-text {
    right: 5%;
    left: 5%;
    max-width: none;
  }

  .slide-text h2 {
    font-size: 2rem;
  }

  .slide-text p {
    font-size: 1rem;
  }

  .slider-controls button {
    width: 50px;
    height: 50px;
  }

  .slider-controls i {
    font-size: 1.5rem;
  }

  .indicator {
    width: 12px;
    height: 12px;
  }

  .lower-indicators {
    bottom: 10px;
  }
}

@media (max-width: 1000px){
  #imgmobile {
    width: 100%;
    max-width: 500px; 
    height: auto; 
  }
}

/* Section Styles */
.section {
  padding: 4rem 0;
  text-align: center;
}

.section p {
  padding: 4rem 0;
  font-size: 30px;
  text-align: right;
}

.section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #6cace4;
}

/* Services Grid with Card Flip Effect */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  align-items: center;
  justify-content: center;
  perspective: 1000px; /* Depth of the 3D effect */
  height: 300px; /* Fixed height for consistency */
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.card:hover .card-inner {
  transform: rotateY(180deg); /* Flip on Y-axis */
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* Hides the back side when not facing forward */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.card-front {
  background: #fff;
  padding: 2rem;
  z-index: 2;
}

.card-back {
  background: #ffb300; /* Blue background for contrast */
  color: #fff;
  padding: 2rem;
  transform: rotateY(180deg); /* Initially rotated to be the back */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: right;
}

.card-back p {
  font-size: 1rem;
  padding: 0;
  color:#000000
}

#linkbackcard {
  text-decoration: none;
}

/* Contact */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-item a {
  text-decoration: none;
  color: #555;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #6cace4;
}

.contact-item i {
  margin-right: 8px;
}

/* News Section */
#news {
    background-color: var(--section-bg);
    padding: 80px 0;
}

#news .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#news h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
}

#news h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
}

.multi-slider-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    margin: 0 -20px;
}

.multi-slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    padding: 20px;
}

.multi-slide {
    flex: 0 0 350px;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.multi-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.multi-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.multi-slide:hover img {
    transform: scale(1.05);
}

.multi-slide h3 {
    padding: 20px 20px 10px;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0;
}

.multi-slide p {
    padding: 0 20px 20px;
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.multi-slide .btn {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 12px 30px;
    background-color: #ffffff;
    color: #333333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.multi-slide .btn:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #d0d0d0;
}

.multi-slide .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.multi-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.multi-controls button {
    padding: 12px 30px;
    background-color: #ffffff;
    color: #333333;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    border: 1px solid #e0e0e0;
}

.multi-controls button:hover:not(:disabled) {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #d0d0d0;
}

.multi-controls button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.multi-controls button:disabled {
    background-color: #f5f5f5;
    color: #999999;
    cursor: not-allowed;
    opacity: 0.7;
    border-color: #e0e0e0;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .multi-slide {
        flex: 0 0 300px;
    }

    .multi-slide img {
        height: 200px;
    }

    .multi-slide h3 {
        font-size: 1.2rem;
    }

    .multi-slide p {
        font-size: 0.9rem;
    }

    .multi-controls button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

#bishtar {
  text-decoration: none;
  text-align: right;
  font-size: 20px;
}
#more {
  text-decoration: none;
  background-color: #f9a825;
  color: #ffffff;
  padding: 12px 24px;
  border: none;
  border-radius: 32px 64px 128px 32px;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-size: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: border-radius 0.8s ease-in-out;
  display: block;
  margin-left: auto;
}

#more:hover {
  transform: scale(1.5);
  background-color: #fbc02d;
  border-radius: 64px 128px 64px 32px;
  cursor: pointer;
}

.sectionabout {
  padding: 4rem 0;
  text-align: center;
}

.sectionabout p {
  padding: 4rem 0;
  font-size: 20px;
  text-align: right;
}
@media (max-width: 764px) {  
  .sectionabout p {  
    font-size: 16px;  
  }  
}

.sectionabout h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #6cace4;
}

.containerabout {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}