/* ===================================
   Enterprise Browser - Custom Styles
   RTL Persian Website
   =================================== */

/* Import Vazirmatn Font */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* CSS Variables */
:root {
  --primary-color: #7cb342;
  --primary-light: #aed581;
  --primary-dark: #558b2f;
  --secondary-color: #f5f5dc;
  --secondary-light: #fffef0;
  --text-dark: #2d3436;
  --text-muted: #636e72;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --border-radius: 16px;
  --border-radius-sm: 10px;
  --border-radius-lg: 24px;
  --transition: all 0.3s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  text-align: right;
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-muted);
  line-height: 1.9;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.navbar-brand i {
  margin-left: 8px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(124, 179, 66, 0.1);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  padding: 12px 32px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(124, 179, 66, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 179, 66, 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  background: transparent;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary-color);
  border: none;
  color: var(--text-dark);
  padding: 12px 32px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--white) 50%, rgba(124, 179, 66, 0.05) 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(124, 179, 66, 0.03) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 30px); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero-title span {
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Section Styles */
.section {
  padding: 100px 0;
}

.section-light {
  background: var(--gray-100);
}

.section-cream {
  background: var(--secondary-light);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: var(--white);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: 2rem;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(124, 179, 66, 0.1), rgba(124, 179, 66, 0.2));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon i {
  font-size: 1.75rem;
  color: var(--primary-color);
}

.card-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 2.5rem;
}

.feature-card .card-icon {
  margin: 0 auto 1.5rem;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 80px 0;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 5rem;
  color: var(--primary-light);
  opacity: 0.3;
  font-family: serif;
  line-height: 1;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
}

.testimonial-avatar i {
  font-size: 1.5rem;
  color: var(--white);
}

.testimonial-info h5 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.testimonial-info span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Team Section */
.team-card {
  text-align: center;
  padding: 2rem;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.team-avatar i {
  font-size: 3rem;
  color: var(--white);
}

.team-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--text-muted);
  margin: 0 5px;
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Blog Cards */
.blog-card {
  overflow: hidden;
}

.blog-card .card-img-top {
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-meta i {
  margin-left: 5px;
}

.blog-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(124, 179, 66, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.85rem;
}

/* FAQ Accordion */
.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: var(--border-radius) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-button {
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  color: var(--text-dark);
}

.accordion-button:not(.collapsed) {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-button::after {
  margin-right: auto;
  margin-left: 0;
}

.accordion-body {
  padding: 1.5rem;
  background: var(--white);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.form-control {
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.1);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item i {
  font-size: 1.5rem;
  margin-left: 1rem;
  opacity: 0.9;
}

.contact-info-item h5 {
  color: var(--white);
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  margin-left: 10px;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Map Placeholder */
.map-placeholder {
  height: 300px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.map-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.footer-brand i {
  margin-left: 8px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.footer-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-right: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--secondary-light), var(--white));
  padding: 150px 0 80px;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.breadcrumb {
  justify-content: center;
  background: transparent;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Solutions Cards */
.solution-card {
  height: 100%;
}

.solution-card .card-body {
  display: flex;
  flex-direction: column;
}

.solution-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  flex-grow: 1;
}

.solution-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
}

.solution-card ul li:last-child {
  border-bottom: none;
}

.solution-card ul li i {
  color: var(--primary-color);
  margin-left: 10px;
}

/* Portfolio Cards */
.portfolio-card {
  overflow: hidden;
}

.portfolio-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-image i {
  font-size: 4rem;
  color: var(--white);
  opacity: 0.7;
}

.portfolio-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Values Grid */
.value-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.value-icon i {
  font-size: 2rem;
  color: var(--white);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.cta-section .btn-light {
  background: var(--white);
  color: var(--primary-color);
  padding: 12px 32px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

.cta-section .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Screenshot Section */
.screenshot-container {
  position: relative;
  padding: 20px;
  background: linear-gradient(135deg, var(--gray-100), var(--white));
  border-radius: var(--border-radius-lg);
}

.screenshot-mockup {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 10px;
}

.screenshot-header {
  background: var(--gray-100);
  padding: 10px 15px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.screenshot-dots {
  display: flex;
  gap: 6px;
}

.screenshot-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-200);
}

.screenshot-dots span:first-child { background: #ff5f57; }
.screenshot-dots span:nth-child(2) { background: #ffbd2e; }
.screenshot-dots span:nth-child(3) { background: #28c840; }

.screenshot-content {
  height: 300px;
  background: linear-gradient(135deg, var(--secondary-light), var(--primary-light));
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-content i {
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .section {
    padding: 70px 0;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: 100px 0 60px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .section-title {
    margin-bottom: 40px;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer-links {
    margin-bottom: 2rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.bg-primary-light { background: rgba(124, 179, 66, 0.1); }
.rounded-custom { border-radius: var(--border-radius); }
