/* Import Vazirmatn Font */
@import url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css");

/* CSS Variables for Colors */
:root {
  --primary-color: #0b9b92;
  --primary-dark: #087f78;
  --primary-light: #e6f5f4;
  --secondary-color: #242424;
  --accent-color: #ff6b6b;
  
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --dark-text: #2d3436;
  --muted-text: #636e72;
  
  --border-color: #e9ecef;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --bs-link-color: var(--primary-color);
  --bs-link-color-rgb: 11, 155, 146;
}

/* Global RTL and Persian Font Setup */
html {
  font-size: 14px;
  direction: rtl;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  direction: rtl;
  text-align: right;
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Vazirmatn", "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.4;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

p {
  color: var(--muted-text);
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Button Styles */
.btn {
  font-family: "Vazirmatn", "Segoe UI", sans-serif;
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(11, 155, 146, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 155, 146, 0.4);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 155, 146, 0.2);
}

/* Header & Navigation */
.main-header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background-color: var(--secondary-color) !important; /* Darker top bar */
  font-size: 0.9rem;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--dark-text) !important;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border: none;
}

.nav-link:hover::after {
  width: 80%;
border-bottom: 1px solid !important;
}

/* Hero Section */
.hero-section {
  overflow: hidden;
}

/* Feature Cards */
.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  background: var(--primary-light);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary-color);
  color: var(--white);
  transform: rotateY(180deg);
}

/* Section Titles */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--muted-text);
  font-size: 1.1rem;
}

/* Category Cards */
.category-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  height: 100%;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.category-title a {
  color: var(--secondary-color);
  font-weight: 700;
}

.category-title a:hover {
  color: var(--primary-color);
}

/* Product Cards (Assuming structure) */
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-image {
  position: relative;
  overflow: hidden;
  padding-top: 75%; /* 4:3 Aspect Ratio */
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Blog Cards */
.blog-card {
  border: none !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--white);
  box-shadow: var(--shadow-sm) !important;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md) !important;
}

.blog-card img {
  height: 200px;
  object-fit: cover;
}

.blog-card .card-body {
  padding: 1.5rem;
}

.blog-card .card-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.blog-card .card-title a {
  color: var(--secondary-color);
}

.blog-card .card-title a:hover {
  color: var(--primary-color);
}

/* Footer */
.main-footer {
  background-color: #1a1a1a !important;
  color: #b2bec3 !important;
  padding-top: 2rem;
}

.main-footer h5, .main-footer h6 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.main-footer a {
  color: #b2bec3;
}

.main-footer a:hover {
  color: var(--primary-color);
  padding-right: 5px;
}

.main-footer .form-control {
  background-color: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  padding: 0.8rem;
}

.main-footer .form-control:focus {
  background-color: rgba(255,255,255,0.2);
  box-shadow: none;
}

/* Utilities */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.shadow-soft {
  box-shadow: var(--shadow-md) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .feature-card {
    margin-bottom: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}
