/* Base Typography and Colors */
@font-face {
  font-family: Vazir;
  src: url('../font/Vazir.eot');
  src: url('../font/Vazir.eot?#iefix') format('Vazir-opentype'),
       url('../font/Vazir.woff') format('woff'),
       url('../font/Vazir.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
:root {
  --tg-primary: #00CCC3;
  --tg-secondary: #00B0A6;
  --tg-dark: #0b2a2e;
  --tg-light: #f8fbfb;
}

html, body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--tg-light);
  color: #1a1f22;
}

/* Farsi/Arabic font override when dir=rtl */
[dir="rtl"] body, [lang="fa"] body, [lang="ar"] body {
  font-family: 'Vazir', Tahoma, Arial, sans-serif;
}

.navbar .brand-text { color: var(--tg-dark); }
.btn-primary { background-color: var(--tg-primary); border-color: var(--tg-primary); }
.btn-outline-primary { color: var(--tg-primary); border-color: var(--tg-primary); }
.btn-outline-primary:hover { background: var(--tg-primary); color: #fff; }

.section-title { font-weight: 700; }
.section-text { color: #2a3136; }

/* Hero */
.hero-section { height: 70vh; min-height: 420px; }
.hero-video { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.hero-overlay { position: relative; z-index: 1; height: 100%; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%); }

/* Slogan Styling - Typewriter Effect */
.slogan-text {
  font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
  font-size: 2.4rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 3px;
  text-shadow: 0 0 0 rgba(0,0,0,0);
  opacity: 1;
  position: relative;
  line-height: 1.4;
  color: #ffffff !important;
  text-transform: uppercase;
  border-right: 4px solid var(--tg-primary);
  animation: blink-cursor 1s infinite;
  padding-right: 12px;
  display: inline-block;
  overflow: visible;
  white-space: nowrap;
  min-width: 0;
  width: auto;
}

.slogan-text.typing {
  border-right: 3px solid var(--tg-primary);
  animation: blink-cursor 1s infinite;
}

.slogan-text.typing-complete {
  border-right: 3px solid var(--tg-primary);
  animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {
  0%, 50% { border-right-color: var(--tg-primary); }
  51%, 100% { border-right-color: transparent; }
}


@media (max-width: 767.98px) {
  .slogan-text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-right: 3px solid var(--tg-primary);
    padding-right: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    white-space: normal;
    line-height: 1.4;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .slogan-text {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    line-height: 1.3;
    padding-right: 6px;
    white-space: normal;
  }
}

/* Background Images */
.bg-faded-1 {
  background-image: url('../img/bg/bg01.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.bg-faded-1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 1;
  border-radius: 18px;
}

.bg-faded-1 > * {
  position: relative;
  z-index: 2;
}

.bg-faded-2 {
  background-image: url('../img/bg/bg02.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.bg-faded-2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.65);
  z-index: 1;
  border-radius: 18px;
}

.bg-faded-2 > * {
  position: relative;
  z-index: 2;
}

.bg-faded-3 {
  background-image: url('../img/bg/bg05.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.bg-faded-3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 1;
  border-radius: 18px;
}

.bg-faded-3 > * {
  position: relative;
  z-index: 2;
}

/* Cards */
.accent-left { border-left: 4px solid var(--tg-secondary); }

/* Chips & Stats */
.chip {
  background: #eef9f8;
  color: var(--tg-dark);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.95rem;
}
.stat-tile {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  text-align: center;
}
.stat-value { font-size: 1.25rem; font-weight: 800; color: var(--tg-dark); }
.stat-label { font-size: 0.85rem; color: #5b666c; }

/* Showcase Card */
.showcase-card {
  position: relative;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.showcase-accent {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--tg-primary), var(--tg-secondary));
}
.icon-circle {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 204, 195, 0.12);
  color: var(--tg-secondary);
  font-size: 1.1rem;
}

/* Section gradient */
.section-gradient {
  background: radial-gradient(1200px 400px at 50% -10%, rgba(0, 204, 195, 0.15), transparent 60%),
              radial-gradient(800px 300px at -10% 10%, rgba(0, 176, 166, 0.12), transparent 60%);
}

/* Product cards */
.product-card {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,0.09); }
.product-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.product-text { color: #414b52; }

/* Ensure product card CTA contrast */
.product-card .btn-outline-primary { color: var(--tg-secondary); border-color: var(--tg-secondary); background: #fff; }
.product-card .btn-outline-primary:hover { color: var(--tg-secondary); background: #fff; border-color: var(--tg-secondary); }
.product-card:hover .btn-outline-primary { color: var(--tg-secondary); background: #fff; border-color: var(--tg-secondary); }

/* Feature list */
.feature-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0 0;
}
.feature-list li { display: flex; align-items: flex-start; gap: 8px; color: #2a3136; }
.feature-list i { color: var(--tg-secondary); margin-top: 2px; }

/* Gallery */
#galleryGrid img { cursor: pointer; border-radius: 12px; }
#galleryGrid .gallery-item { overflow: hidden; border-radius: 12px; }
#galleryGrid .gallery-item img { transition: transform .35s ease; display: block; width: 100%; height: 100%; object-fit: cover; }
#galleryGrid .gallery-item:hover img { transform: scale(1.05); }

/* Modal */
.modal-content img { display: block; max-height: 75vh; object-fit: contain; }

/* Footer */
footer { background: #ffffff; }

/* RTL helpers */
.rtl .accent-left { border-left: none; border-right: 4px solid var(--tg-secondary); }

/* Utilities */
.text-white-75 { color: rgba(255,255,255,0.85) !important; }
.
.contact-list i { font-size: 1.1rem; }
.icon-box {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  color: var(--tg-secondary);
}
.social-link {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  color: #c13584; /* Instagram accent */
  transition: transform .2s ease, box-shadow .2s ease;
}
.social-link:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.09); }
/* keep social-link simple to match email */

@media (max-width: 767.98px) {
  .hero-section { height: 56vh; }
}


/* Boxed UI Utilities */
.section-box {
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.07);
}

.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: "";
  position: absolute; inset: -1px;
  z-index: -1;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,204,195,.7), rgba(0,176,166,.7));
}

/* Footer */
.footer-modern .footer-top { border-top: 4px solid transparent; position: relative; background: #fff; }
.footer-modern .footer-top::before { content: ""; position: absolute; left:0; right:0; top:0; height:4px; background: linear-gradient(90deg, var(--tg-primary), var(--tg-secondary)); }
.footer-modern .footer-links a { color: #415058; text-decoration: none; }
.footer-modern .footer-links a:hover { color: var(--tg-secondary); }
.footer-modern .footer-bottom { background: #f7fbfb; border-top: 1px solid rgba(0,0,0,0.06); }

/* Statistics Section */
.stat-card {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.stat-item {
  padding: 1.5rem;
  text-align: center;
  width: 100%;
}

.stat-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--tg-primary), var(--tg-secondary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 204, 195, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 204, 195, 0.4);
}

.stat-icon i {
  font-size: 2rem;
  color: #fff;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--tg-dark);
  text-shadow: none;
}

.stat-plus {
  font-size: 2.5rem;
  color: var(--tg-primary);
  font-weight: 600;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 500;
  color: #2a3136;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 767.98px) {
  .stat-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .stat-icon i {
    font-size: 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-plus {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.95rem;
  }
}


