/* ========== Logo ========== */
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
}

/* ========== Navigation Links ========== */
.nav-link {
  position: relative;
  padding: 0.6rem 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  display: inline-block;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent);
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
  color: var(--accent);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 70%;
  box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent);
}

/* ========== Hero Typography ========== */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: var(--accent);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-inline: auto;
}

/* ========== Buttons ========== */
.btn {
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-bounce);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 15px var(--accent-glass);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--accent-glass);
  background: var(--accent-hover);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--accent-glass) 50%,
      transparent 100%);
  transform: translateX(-100%);
  animation: btnShine 3s ease-in-out infinite;
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

/* ========== Theme Toggle ========== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface-light);
  transition: var(--transition-bounce);
  border: 1px solid var(--border);
}

.theme-toggle:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: rotate(15deg);
}

/* ========== Menu Toggle (Mobile) ========== */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px solid var(--border);
  align-items: center;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ========== Drawer ========== */
.btn-close {
  width: 40px;
  height: 40px;
  background: var(--surface-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.drawer-nav-link {
  display: block;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background: var(--surface-2);
  border-radius: 12px;
  font-weight: 500;
  transition: 0.3s;
  border: 1px solid transparent;
}

.drawer-nav-link:hover {
  background: var(--accent-glass);
  color: var(--accent);
  border-color: var(--accent);
}

/* ========== Cards (اهمیت، خدمات، تماس) ========== */
.importance-card,
.service-card,
.contact-info-card,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: 0 4px 6px var(--shadow);
  position: relative;
  overflow: hidden;
}

.importance-card:hover,
.service-card:hover,
.contact-info-card:hover,
.contact-form:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px var(--shadow-hover);
  border-color: var(--accent);
}

.importance-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-glass);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-small);
  margin-bottom: 1.5rem;
}

/* ========== Portfolio ========== */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.portfolio-tab {
  padding: 0.75rem 1.5rem;
  background: var(--surface-2);
  border-radius: 50px;
  font-weight: 500;
  color: var(--text-secondary);
}

.portfolio-tab.active,
.portfolio-tab:hover {
  background: var(--accent);
  color: white;
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 4px 6px var(--shadow);
  width: 20rem;
  margin: 0 auto;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px var(--shadow-hover);
  border-color: var(--accent);
}

.portfolio-image-box {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #000;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.1);
  opacity: 0.8;
}

.portfolio-overlay-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: var(--transition);
  color: white;
}

.portfolio-card:hover .portfolio-overlay-icon {
  opacity: 1;
}

.portfolio-content {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-category {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  line-height: 1.3;
}

.portfolio-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: justify;
}

/* ========== Blog Scroll Cards (افقی) ========== */
.blog-scroll-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  user-select: none;
}

.blog-scroll-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px var(--shadow-hover);
}

.blog-scroll-card-image {
  height: 160px;
  border-radius: var(--border-radius-small);
  overflow: hidden;
}

.blog-scroll-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.blog-scroll-card:hover .blog-scroll-card-image img {
  transform: scale(1.05);
}

.blog-scroll-card-meta {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.blog-scroll-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.blog-scroll-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-scroll-card-cta {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glass);
  border-radius: 8px;
}

/* ========== Contact Details ========== */
.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.contact-detail-item:first-child {
  margin-top: 1rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glass);
  color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* ========== Social Links ========== */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface-2);
  border-radius: 50%;
  color: var(--muted);
  transition: 0.3s;
}

.social-link:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

/* ========== Form ========== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--border-radius-small);
  background: var(--bg);
  color: var(--text);
  transition: 0.3s;
}

.form-control:focus {
  border-color: var(--accent);
  outline: none;
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -100px);
  background: var(--surface);
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: 0.4s;
  z-index: 2000;
  border: 1px solid var(--border);
  font-weight: 500;
}

.toast.show {
  transform: translate(-50%, 0);
}

/* ========== Footer Links ========== */
.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
  padding-right: 5px;
}

.footer-bottom {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ========== Search Toggle Button ========== */
.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  color: var(--text-secondary);
  transition: var(--transition-bounce);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
}

.search-toggle:hover,
.search-toggle:focus {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 25px var(--accent-glow);
}

/* ========== Button Shine Animation ========== */
@keyframes btnShine {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(100%);  }
}