:root {
  --primary-dark: #8b0000;
  --primary-light: #b22222;
  --secondary-dark: #222222;
  --secondary-light: #333333;
  --accent-gold: #d4af37;
  --light-text: #ffffff;
  --dark-text: #222222;
}
/* پس‌زمینه ساده + ذرات */

#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

body {
  font-family: "Raleway", sans-serif;
  color: var(--dark-text);
  background-color: #f8f9fa;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

/* Navbar */
.navbar {
  background-color: var(--primary-dark);
  padding: 20px 0;
  transition: all 0.5s ease;
}

.navbar-brand {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--light-text) !important;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600;
  margin: 0 10px;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--light-text) !important;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.carousel-item {
  height: 100vh;
  background-size: cover;
  background-position: center;
}

.carousel.carousel-fade .carousel-item {
  transition: opacity 2s ease-in-out;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: var(--light-text);
  text-align: center;
  padding: 0 20px;
  width: 100%;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 5px;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.btn-custom {
  background-color: var(--primary-dark);
  color: var(--light-text);
  padding: 12px 30px;
  border-radius: 0;
  border: 2px solid var(--primary-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
}

.btn-custom:hover {
  background-color: var(--dark-text);
  color: var(--light-text);
  border-color: var(--light-text);
}

/* نقطه‌ها */
.carousel-indicators [data-bs-target] {
  background-color: var(--light-text);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-title {
  position: relative;
  margin-bottom: 70px;
  text-align: center;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-dark);
  display: inline-block;
  margin-bottom: 20px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-dark);
}

/* About Section */
.about-content {
  padding: 30px;
  background-color: var(--light-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}
.about-content,
.img-fluid {
  height: 550px; /* یا هر ارتفاع دلخواه */
}

.img-fluid {
  object-fit: cover;
}
.about-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--primary-dark);
}

/* Portfolio Section */
.portfolio-filter {
  margin-bottom: 40px;
  text-align: center;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--dark-text);
  font-weight: 600;
  margin: 0 10px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--primary-dark);
}

.filter-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-dark);
  transition: width 0.3s ease;
}

.filter-btn.active::after,
.filter-btn:hover::after {
  width: 100%;
}

.portfolio-item {
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.portfolio-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(139, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: all 0.5s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
}

/* Testimonials */
.testimonial-card {
  background-color: var(--light-text);
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: rgba(139, 0, 0, 0.1);
  font-family: "Playfair Display", serif;
}

.client-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--primary-dark);
}

/* Process Section */
.process-container {
  position: relative;
  padding: 50px 0;
}

.process-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--primary-dark);
}

.process-step {
  position: relative;
  margin-bottom: 30px;
  padding: 30px;
  background-color: var(--light-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.process-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--primary-dark);
  color: var(--light-text);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Contact Form */
.contact-form {
  background-color: var(--light-text);
  padding: 40px;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
  border-radius: 0;
  border: 1px solid #ddd;
  padding: 12px 15px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-dark);
  box-shadow: none;
}

/* FAQ Section */
.accordion-button {
  font-weight: 600;
  color: var(--bs-dark);
  background-color: rgba(139, 0, 0, 0.05);
  transition: background-color 0.3s, color 0.3s;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(139, 0, 0, 0.1);
  color: #800000;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
  outline: none;
}

.accordion-item {
  border: none;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

/* Footer */
.footer {
  background-color: var(--secondary-dark);
  color: var(--light-text);
  padding: 70px 0 30px;
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-dark);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  color: var(--light-text);
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}
a.custom-link {
  color: inherit; /* رنگ متن اطراف رو می‌گیره */
  text-decoration: none; /* زیرخط لینک حذف میشه */
  transition: color 0.3s ease;
}

a.custom-link:hover {
  color: var(--primary-light);
  text-decoration: underline; /* می‌تونی زیرخط بذاری یا حذف کنی */
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 50px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Drawings Section */
.drawing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.drawing-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 300px;
}

.drawing-item.large {
  grid-column: span 2;
  height: 400px !important;
}

.drawing-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.drawing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(139, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: all 0.5s ease;
}

.drawing-item:hover .drawing-overlay {
  opacity: 1;
}

.drawing-item:hover img {
  transform: scale(1.1);
}

/* Video Section */
.video-container {
  width: 100%; /* عرض کامل ستون */
  max-width: 640px; /* حداکثر عرض */
  height: 360px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ویدیو داخل کادر پر بشه، حفظ نسبت */
  display: block;
  border-radius: 10px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-dark);
  color: var(--light-text);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-light);
  transform: translateY(-5px);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
  opacity: 1;
}

.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
  top: 40%;
  background-color: rgba(139, 0, 0, 0.7);
}
