/* Styles extracted from home.html <style> block */
:root {
  --primary: #e0e5ea;
  --accent: #aeccf3;
  --bg-gradient: linear-gradient(135deg, #232b3b 0%, #3a5d8c 100%);
  --glass-bg: rgba(30, 40, 60, 0.22);
  --glass-border: 1.5px solid #b2d7ff55;
  --radius: 1.5rem;
  --shadow: 0 8px 32px 0 rgba(31,38,135,0.18);
  --text: #fff;
  --card-padding: 2rem 1.5rem 1.5rem 1.5rem;
  --gap: 2rem;
}
body {
  font-family: 'Vazir', Tahoma, Arial, sans-serif;
  background: var(--bg-gradient);
  color: var(--text);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
header {
  width: 100%;
  background: rgba(0,0,0,0.25);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.logo {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary);
  margin-right: 2rem;
}
.logo img {
  width: 60px;
  height: 40px;
  margin-left: 0.7rem;
  border-radius: 1rem;
  padding: 0.2rem;
}
nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  margin-left: 2rem;
  padding: 0;
}
nav li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
nav li a:hover {
  color: var(--primary);
}
main {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
.hero-section {
  max-width: 1200px;
  margin: 3rem auto 2.5rem auto;
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.hero-section img {
  width: 120px;
  height: 120px;
  border-radius: 2rem;
  background: #fff;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px #1a3a5d33;
}
.hero-section h1 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 0.7rem;
  font-weight: 900;
}
.hero-section h2 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.hero-section p {
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.95;
  margin-bottom: 2rem;
}
.hero-section .cta-btn {
  background: #3a5d8c;
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.9rem 2.2rem;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 12px #1a3a5d44;
  transition: background 0.2s, color 0.2s;
}
.hero-section  {
  color: #fff;
}
.cta-btn:hover {
  background: var(--accent);
  color: #fff;
}
.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, #4f8cff 0%, #6ed0fa 100%);
  color: #fff !important;
  border: none;
  border-radius: 2.5em;
  padding: 1.1rem 2.7rem;
  font-size: 1.25rem;
  font-weight: bold;
  box-shadow: 0 4px 24px rgba(79,140,255,0.13);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.25s, box-shadow 0.25s, transform 0.15s;
  outline: none;
  margin-top: 1.2rem;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #6ed0fa 0%, #4f8cff 100%);
  box-shadow: 0 8px 32px rgba(79,140,255,0.22);
  color: #fff !important;
  transform: translateY(-2px) scale(1.04);
}
/* Services */
.services-section {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  padding: 0 1.5rem;
}
.services-title {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: right;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.service-card {
  background: var(--glass-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  border: var(--glass-border);
  transition: box-shadow 0.2s, background 0.2s;
}
.service-card:hover {
  background: rgba(178,215,255,0.13);
  box-shadow: 0 8px 32px 0 rgba(49,77,108,0.18);
}
.service-card i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
}
.service-card h3 {
  font-size: 1.13rem;
  color: var(--accent);
  margin-bottom: 0.7rem;
  font-weight: bold;
}
.service-card p {
  font-size: 1.05rem;
  color: var(--text);
  opacity: 0.93;
}
/* Posts */
.posts-section {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  padding: 0 1.5rem;
}
.posts-title {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 2rem;
  text-align: right;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.post-card {
  background: var(--glass-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  border: var(--glass-border);
  transition: box-shadow 0.2s, background 0.2s;
}
.post-card:hover {
  background: rgba(178,215,255,0.13);
  box-shadow: 0 8px 32px 0 rgba(49,77,108,0.18);
}
.post-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
}
.post-card h3 {
  font-size: 1.08rem;
  color: var(--primary);
  margin-bottom: 0.7rem;
  min-height: 3.2em;
}
.post-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline dotted;
  margin-top: auto;
  align-self: flex-end;
  font-size: 1rem;
  transition: color 0.2s;
}
.post-link:hover {
  color: #fff;
}
/* FAQ */
.faq-section {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  padding: 0 1.5rem;
  background: var(--glass-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: var(--glass-border);
}
.faq-title {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: right;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
/* FAQ section transparent background */
.faq-section {
  background: transparent !important;
}

/* FAQ glassy items in a responsive grid */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  padding: 0;
  margin: 0;
}
@media (max-width: 900px) {
  .faq-list {
    grid-template-columns: 1fr;
  }
}

.faq-list li {
  background: transparent !important;
  border-radius: 1.2rem;
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 1.2rem 1.5rem;
  color: #fff;
  transition: box-shadow 0.2s, background 0.2s;
  text-align: right;
  font-size: 1.08rem;
  line-height: 1.8;
  list-style: none;
}
.faq-list li:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.28);
}
.faq-list li strong {
  color: #c3d5ed;
  font-weight: bold;
}
/* About/Contact */
.about-contact-section {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  padding: 0 1.5rem;
  display: flex;
  gap: var(--gap);
  flex-wrap: wrap;
}
.about-card, .contact-card {
  flex: 1 1 320px;
  background: var(--glass-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--card-padding);
  border: var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 320px;
  margin-bottom: 1.5rem;
}
.about-card h2, .contact-card h2 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.about-card p, .contact-card p {
  font-size: 1.05rem;
  color: var(--text);
  opacity: 0.93;
  margin-bottom: 1rem;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.contact-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}
.contact-list li i {
  color: var(--accent);
  font-size: 1.2em;
  min-width: 1.5em;
  text-align: center;
}
.contact-socials {
  margin-top: 1rem;
  display: flex;
  gap: 1.2rem;
}
.contact-social {
  color: var(--primary);
  font-size: 1.5rem;
  transition: color 0.2s;
}
.contact-social:hover {
  color: var(--accent);
}
.contact-list a {
  color: #4f8cff !important;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-list a:hover, .contact-list a:focus {
  color: #6ed0fa !important;
  text-decoration: underline;
}
@media (max-width: 1100px) {
  .services-grid, .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-contact-section {
    flex-direction: column;
    gap: 1.5rem;
  }
}
@media (max-width: 700px) {
  .hero-section, .services-section, .posts-section, .faq-section, .about-contact-section {
    padding: 0 0.5rem;
  }
  .services-grid, .posts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .about-card, .contact-card {
    min-width: 0;
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  }
  .faq-list li {
    padding: 1rem 0.7rem;
    font-size: 0.98rem;
  }
}
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
body {
  position: relative;
} 

/* Sliding menu styles */
#main-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  z-index: 100;
  color: #232b3b;
}
#main-menu.open {
  transform: translateX(0);
}
#menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
}
@media (min-width: 900px) {
  #main-menu {
    position: static;
    transform: none;
    height: auto;
    box-shadow: none;
    width: auto;
    background: none;
    color: var(--text);
  }
  #menu-toggle {
    display: none;
  }
} 

.about-contact-section {
  flex-direction: row-reverse;
} 

.about-card {
  align-items: flex-end;
  text-align: right;
}
.about-card h2, .about-card p, .about-card ul, .about-card li {
  text-align: right;
} 