/* =============================================================================
   MODERN BUSINESS CLINIC - PROFESSIONAL STYLESHEET
   ============================================================================= */

/* CSS Custom Properties - Theme System */
:root {
  /* Colors - Dark Theme (Default) */
  --primary-color: #1038b0;
  --secondary-color: #0095ff;
  --accent-color: #803afb;

  --bg-primary: #000000;
  --bg-secondary: #181b1d;
  --bg-tertiary: #1f2935;
  --bg-glass: rgba(255, 255, 255, 0.1);

  --text-primary: #ffffff;
  --text-secondary: #95a5c6;
  --text-muted: #6b7280;

  --border-color: rgba(255, 255, 255, 0.2);
  --shadow-light: 0 4px 24px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 32px rgba(31, 38, 135, 0.37);
  --shadow-heavy: 0 12px 48px rgba(31, 38, 135, 0.28);

  /* Service Card Colors */
  --service-primary: #e67e22;
  --service-secondary: #0abead;
  --service-accent: #803afb;
  --service-info: #03acf8;
  --service-success: #49b846;
  --service-warning: #ffbb01;

  /* Pricing Colors */
  --pricing-basic: #6b7280;
  --pricing-professional: #0abead;
  --pricing-enterprise: #803afb;
}

[data-theme="light"] {
  /* Colors - Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-glass: rgba(0, 0, 0, 0.05);

  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;

  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-light: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 12px 48px rgba(0, 0, 0, 0.15);
}

/* =============================================================================
   RESET & BASE STYLES
   ============================================================================= */

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

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "IRANSansX", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* =============================================================================
   MODERN NAVIGATION HEADER
   ============================================================================= */

.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

/* Light theme nav adjustments */
[data-theme="light"] .modern-header {
  background: rgba(255, 255, 255, 0.9);
}

.modern-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  min-height: 80px;
}

/* Navigation Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
}

.nav-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 2px;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-item--active .nav-link {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-item--active .nav-link::after {
  transform: scaleX(1);
}

/* Navigation Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: var(--text-primary);
}

/* Mobile Theme Toggle (inside hamburger menu) */
.mobile-theme-toggle-item {
  display: none !important;
}

.mobile-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  text-align: center;
  border-radius: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.mobile-theme-toggle:hover {
  background: var(--primary-color);
  color: white;
}

.mobile-theme-toggle:hover span {
  color: white;
}

.mobile-theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mobile-theme-toggle span {
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle-line {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(5.5px, -5px);
}

/* Navigation Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

[data-theme="light"] .nav-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =============================================================================
   MAIN CONTENT
   ============================================================================= */

.main-content {
  padding-top: 80px;
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 20%,
      var(--primary-color) 10 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      var(--secondary-color) 10 0%,
      transparent 50%
    );
  opacity: 0.1;
  z-index: 1;
}

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

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.text-primary {
  color: var(--primary-color);
}

.hero-description {
  margin-bottom: 2.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  text-align: justify;
  box-shadow: var(--shadow-light);
}

.hero-description p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1.05rem;
}

.quote-persian {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.quote-english {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

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

.hero-image img {
  width: 85%;
  max-width: 85%;
  height: auto;
  border-radius: 20px;
  filter: drop-shadow(var(--shadow-heavy));
  display: block;
  margin: 0 auto;
}

/* =============================================================================
    MODERN BUTTONS
    ============================================================================= */

.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

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

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* =============================================================================
    VIDEO SECTION
    ============================================================================= */

.video-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.video-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  position: relative;
}

.main-video {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================================================================
    SECTION HEADERS
    ============================================================================= */

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.section-divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
  margin: 0 auto;
}

/* =============================================================================
    SERVICES SECTION
    ============================================================================= */

.services-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.service-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--primary-color);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Service Card Colors */
.service-card--primary::before {
  background: var(--service-primary);
}
.service-card--secondary::before {
  background: var(--service-secondary);
}
.service-card--accent::before {
  background: var(--service-accent);
}
.service-card--info::before {
  background: var(--service-info);
}
.service-card--success::before {
  background: var(--service-success);
}
.service-card--warning::before {
  background: var(--service-warning);
}

.service-card--primary:hover {
  border-color: var(--service-primary);
}
.service-card--secondary:hover {
  border-color: var(--service-secondary);
}
.service-card--accent:hover {
  border-color: var(--service-accent);
}
.service-card--info:hover {
  border-color: var(--service-info);
}
.service-card--success:hover {
  border-color: var(--service-success);
}
.service-card--warning:hover {
  border-color: var(--service-warning);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
}

.service-card--primary .service-icon {
  color: var(--service-primary);
}
.service-card--secondary .service-icon {
  color: var(--service-secondary);
}
.service-card--accent .service-icon {
  color: var(--service-accent);
}
.service-card--info .service-icon {
  color: var(--service-info);
}
.service-card--success .service-icon {
  color: var(--service-success);
}
.service-card--warning .service-icon {
  color: var(--service-warning);
}

.service-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.service-card .close-btn {
  display: none;
}

.service-card.expandable.active {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80%;
  max-width: 800px;
  max-height: 70vh;
  z-index: 2000;
  transform: translate(-50%, -50%) scale(1);
  background: var(--bg-glass);
  box-shadow: var(--shadow-heavy);
  animation: expand 0.3s ease forwards;
  overflow-y: auto;
  padding-right: 2.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.service-card.expandable.active::-webkit-scrollbar {
  display: none;
}

@keyframes expand {
  from {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.service-card.expandable.active .close-btn {
  display: block;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 2100;
}

.extra-details {
  display: none;
}

.service-card.active .extra-details {
  display: block;
  margin-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/** tick task  */
/* .service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 20px;
  height: 20px;
  background: red;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
} */

/* =============================================================================
    ABOUT SECTION
    ============================================================================= */

.about-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.about-description {
  text-align: justify;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-item {
  padding: 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateX(10px);
  border-color: var(--primary-color);
}

.feature-item h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--text-secondary);
  margin: 0;
}

.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 500px;
}

.about-image img {
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: var(--shadow-heavy);
}

/* =============================================================================
    PORTFOLIO SECTION
    ============================================================================= */

.portfolio-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--primary-color);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 90,
    var(--secondary-color) 90
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info {
  text-align: center;
  color: white;
}

.portfolio-info h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.portfolio-content {
  padding: 2rem;
}

.portfolio-content h5 {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.portfolio-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.portfolio-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.25rem 1rem;
  background: var(--primary-color);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* =============================================================================
    PRICING SECTION
    ============================================================================= */

.pricing-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.pricing-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  padding: 2.5rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--primary-color);
}

.pricing-card--featured {
  border-color: var(--secondary-color);
  position: relative;
  transform: scale(1.05);
}

.pricing-card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.featured-badge {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary-color);
  color: white;
  padding: 0.5rem 2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.package-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.package-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.currency {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.package-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.pricing-body {
  text-align: center;
}

.features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
  text-align: right;
}

.features-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

/* =============================================================================
    CONTACT SECTION
    ============================================================================= */

.contact-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.contact-section .row {
  justify-content: center;
}

.contact-section .col-lg-8 {
  max-width: 800px;
}

.contact-form-wrapper {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  padding: 3rem;
}

.form-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.contact-form {
  direction: rtl;
}

.form-input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--bg-glass);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.contact-info {
  padding: 2rem 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-color: var(--primary-color);
  transform: translateX(10px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.contact-details h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.social-links {
  margin-top: 3rem;
}

.social-links h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.social-link img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* =============================================================================
    FOOTER
    ============================================================================= */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}

.footer-content {
  margin-bottom: 3rem;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.footer-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
/* Add spacing before the address line under the description */
.footer-description + .footer-description {
  margin-top: 1.5rem;
}

.footer-heading {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

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

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-contact {
  margin-bottom: 2rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

.contact-label {
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 80px;
}

.contact-value {
  color: var(--text-primary);
  font-weight: 600;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  width: 45px;
  height: 45px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-social-link img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.copyright {
  color: var(--text-secondary);
  margin: 0;
}

.footer-policies {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
}

.footer-policies a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-policies a:hover {
  color: var(--primary-color);
}

/* =============================================================================
    SCROLL TO TOP BUTTON
    ============================================================================= */

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* =============================================================================
    ANIMATIONS
    ============================================================================= */

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation Classes */
.animate-fadeInUp,
.animate-scaleIn,
.animate-slideInRight {
  opacity: 0;
  transition: all 0.6s ease;
}

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

.animate-scaleIn.animate {
  animation: scaleIn 0.6s ease forwards;
}

.animate-slideInRight.animate {
  animation: slideInRight 0.6s ease forwards;
}

/* Animation Delays */
.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}
.delay-5 {
  animation-delay: 0.5s;
}
.delay-6 {
  animation-delay: 0.6s;
}

/* =============================================================================
    UTILITY CLASSES
    ============================================================================= */

.w-100 {
  width: 100%;
}
.text-center {
  text-align: center;
}
.text-end {
  text-align: end;
}
.text-md-end {
  text-align: end;
}

/* Mobile Menu Styles */
body.menu-open {
  overflow: hidden;
}

/* =============================================================================
    RESPONSIVE DESIGN
    ============================================================================= */

/* Large Desktop */
@media (max-width: 1400px) {
  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

/* Desktop */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .quote-persian {
    font-size: 1.3rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Tablet */
@media (max-width: 991.98px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 300px;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border-color);
  }

  [data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 1rem;
    text-align: center;
    border-radius: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
  }

  .hero-title {
    font-size: 2.2rem;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .quote-persian {
    font-size: 1.2rem;
    text-align: center;
  }

  .quote-english {
    text-align: center;
  }

  .pricing-card--featured {
    transform: none;
  }

  .footer-policies {
    justify-content: flex-start;
    margin-top: 1rem;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .modern-nav {
    padding: 0.75rem 0;
    min-height: 70px;
  }

  .main-content {
    padding-top: 70px;
  }

  .nav-logo {
    width: 40px;
    height: 40px;
  }

  .nav-title {
    font-size: 1.1rem;
  }

  .nav-subtitle {
    font-size: 0.7rem;
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .quote-persian {
    font-size: 1.1rem;
  }

  .quote-english {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .service-card {
    padding: 2rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-tabs {
    gap: 0.5rem;
  }

  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .pricing-card {
    padding: 2rem;
  }

  .contact-form-wrapper {
    padding: 2rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-logo-section {
    justify-content: center;
    text-align: center;
  }

  .footer-heading {
    text-align: center;
    margin-top: 2rem;
  }

  .footer-links {
    text-align: center;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .scroll-to-top {
    width: 50px;
    height: 50px;
    bottom: 1rem;
    right: 1rem;
  }
}

/* Small Mobile */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-section,
  .services-section,
  .about-section,
  .portfolio-section,
  .pricing-section,
  .contact-section {
    padding: 3rem 0;
  }

  .video-section {
    padding: 2rem 0;
  }

  .service-card,
  .pricing-card {
    padding: 1.5rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .portfolio-tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-btn {
    width: 200px;
  }
}

/* Extra Small Mobile - 320px */
@media (max-width: 320px) {
  /* Hide desktop theme toggle */
  .theme-toggle {
    display: none !important;
  }

  /* Show mobile theme toggle in hamburger menu */
  .mobile-theme-toggle-item {
    display: block !important;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

/* Performance Optimizations */
.animate-fadeInUp,
.animate-scaleIn,
.animate-slideInRight {
  will-change: transform, opacity;
}

.service-card,
.pricing-card,
.portfolio-card {
  will-change: transform;
}

/* Print Styles */
@media print {
  .modern-header,
  .scroll-to-top,
  .nav-overlay {
    display: none;
  }

  .main-content {
    padding-top: 0;
  }

  * {
    color: #000 !important;
    background: #fff !important;
  }
}

/* carosel css */
