/* =============================================
   TASCOPS - Complete Premium Stylesheet v3
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Alexandria:wght@300;400;500;600;700;800&display=swap');

/* ---- Variables ---- */
:root {
  --primary: #0d4680;
  --primary-dark: #0a3360;
  --primary-light: #1a5fa0;
  --secondary: #59a639;
  --secondary-light: #6ebf4a;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(13, 70, 128, 0.10);
  --shadow-md: 0 8px 30px rgba(13, 70, 128, 0.14);
  --shadow-lg: 0 20px 50px rgba(13, 70, 128, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --transition: 0.3s ease;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

html[dir="rtl"] body {
  font-family: 'Alexandria', sans-serif;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

/* ---- Utilities ---- */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.highlight {
  color: var(--secondary);
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 9999;
  transition: var(--transition);
}

.navbar.scrolled {
  height: 65px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

html[dir="rtl"] .nav-links a::after {
  right: 0;
  left: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: #fff;
  box-shadow: 0 4px 15px rgba(89, 166, 57, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(89, 166, 57, 0.45);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lang {
  background: #f0f4f8;
  color: var(--primary);
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
}

.btn-lang:hover {
  background: var(--primary);
  color: #fff;
}

.btn-lg {
  padding: 0.85rem 2.2rem;
  font-size: 1rem;
}

/* ---- Hamburger Menu ---- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ==================== HERO ==================== */
.hero {
  padding-top: 130px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f5e0 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 166, 57, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 70, 128, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(89, 166, 57, 0.1);
  border: 1px solid rgba(89, 166, 57, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.img-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
}

.img-card img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 90px 0;
}

.section-alt {
  background: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(89, 166, 57, 0.1);
  color: var(--secondary);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

/* ---- Services Grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--secondary), var(--primary));
  transition: height 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  font-size: 2.8rem;
  margin-bottom: 1.25rem;
  display: block;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.learn-more {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.learn-more:hover {
  gap: 10px;
}

.learn-more::after {
  content: '→';
}

html[dir="rtl"] .learn-more::after {
  content: '←';
}

/* ---- About Section ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(89, 166, 57, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-item h4 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.feature-item p {
  margin: 0;
  font-size: 0.88rem;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
  white-space: nowrap;
  border: 1px solid var(--border);
}

.about-badge .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.about-badge .lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Contact Form ---- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(13, 70, 128, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-detail p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  background: #fafbfd;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(89, 166, 57, 0.12);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.captcha-box {
  background: var(--bg);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.captcha-box label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.captcha-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

#captcha-eq {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

#captcha-input {
  width: 90px;
  text-align: center;
  padding: 0.6rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
}

.error-text {
  display: block;
  color: #e53e3e;
  font-size: 0.82rem;
  margin-top: 6px;
}

.form-status {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---- Page Hero (Subpages) ---- */
.page-hero {
  padding-top: 130px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  margin-bottom: -30px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

.breadcrumb a {
  color: #fff;
}

/* ---- Team Cards ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(13, 70, 128, 0.1), rgba(89, 166, 57, 0.1));
}

.team-card h4 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.team-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---- Values ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.value-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- CTA Section ---- */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--bg);
  transform: translateY(-2px);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  display: inline-block;
  background: #fff;
  padding: 6px 18px;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.footer-brand .logo img {
  height: 40px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--secondary-light);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

/* ==================== ANIMATIONS ==================== */

/* ---- Page Loader ---- */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-bar {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  border-radius: 99px;
  animation: loaderFill 0.8s ease forwards;
}

@keyframes loaderFill {
  to {
    width: 100%;
  }
}

/* ---- Top Progress Bar ---- */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary), var(--primary-light));
  z-index: 99999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--secondary);
}

/* ---- Page Entrance ---- */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-enter {
  animation: pageFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---- Hero Staggered Entrance ---- */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroScale {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes badgePop {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(10px);
  }

  60% {
    transform: scale(1.05);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.js-active .hero-badge {
  animation: badgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.js-active .hero-content h1 {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.js-active .hero-content p {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.js-active .hero-buttons {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.js-active .hero-stats {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}

.js-active .hero-image {
  animation: heroScale 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* Page Hero (subpages) */
.js-active .page-hero h1 {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.js-active .page-hero p {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.js-active .page-hero .breadcrumb {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

/* ---- Floating Image Animation ---- */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-14px);
  }
}

.hero-image .img-card {
  animation: float 5s ease-in-out infinite;
}

/* ---- Navbar Slide Down ---- */
@keyframes navSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.js-active .navbar {
  animation: navSlideDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---- Scroll Reveal System ---- */
.js-active .reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-active .reveal-left {
  opacity: 0;
  transform: translateX(-45px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-active .reveal-right {
  opacity: 0;
  transform: translateX(45px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-active .reveal-zoom {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-active .reveal-flip {
  opacity: 0;
  transform: rotateX(20deg) translateY(30px);
  transform-origin: top center;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active,
.reveal-zoom.active,
.reveal-flip.active {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* Stagger children of a reveal grid */
.js-active .stagger-children>* {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-children.active>* {
  opacity: 1 !important;
  transform: none !important;
}

/* ---- Card Hover 3D Tilt ---- */
.service-card,
.value-card,
.team-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---- Ripple Effect on Buttons ---- */
.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(60);
    opacity: 0;
  }
}

/* ---- Stat Counter Animation ---- */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-item h3 {
  animation: countUp 0.8s ease both;
}

/* ---- Section Tag Slide-in ---- */
@keyframes tagSlide {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.section-tag {
  display: inline-block;
}

.section-header.active .section-tag {
  animation: tagSlide 0.5s ease 0.1s both;
}

/* ---- Smooth Underline Link Hover (navbar) ---- */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

html[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 50%;
  transition: width 0.3s ease, right 0.3s ease;
}

html[dir="rtl"] .nav-links a:hover::after {
  right: 0;
}

/* ---- Service Card Left Border Reveal ---- */
.service-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-card::before {
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Glow on CTA hover ---- */
.cta-section .btn-white {
  transition: all 0.3s ease;
}

.cta-section .btn-white:hover {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
  transform: translateY(-3px) scale(1.03);
}

/* ---- Page Transition Overlay ---- */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 98888;
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

#page-transition.slide-in {
  transform: translateX(0);
}

#page-transition.slide-out {
  transform: translateX(100%);
}

html[dir="rtl"] #page-transition {
  transform: translateX(100%);
}

html[dir="rtl"] #page-transition.slide-in {
  transform: translateX(0);
}

html[dir="rtl"] #page-transition.slide-out {
  transform: translateX(-100%);
}

/* ---- Social Link Hover ---- */
.social-link {
  transition: background 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link:hover {
  background: var(--secondary);
  transform: translateY(-4px) scale(1.1);
}

/* ---- Footer Col Links Stagger ---- */
.footer-col ul li {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-col ul li:hover {
  transform: translateX(4px);
}

html[dir="rtl"] .footer-col ul li:hover {
  transform: translateX(-4px);
}

/* ---- img-card shimmer ---- */
@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }

  100% {
    background-position: 400px 0;
  }
}

.img-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  background-size: 400px 100%;
  animation: shimmer 3s infinite linear;
  pointer-events: none;
  z-index: 1;
}

.img-card {
  position: relative;
  overflow: hidden;
}



/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-img-wrap {
    display: none;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.nav-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    gap: 1rem;
    z-index: 9998;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 110px;
    padding-bottom: 60px;
  }

  .section {
    padding: 60px 0;
  }

  .page-hero {
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  }
}

/* ==================== RTL Support ==================== */
html[dir="rtl"] .learn-more {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-image {
  transform: scaleX(-1);
}

html[dir="rtl"] .service-card::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .about-badge {
  right: 50%;
  left: auto;
  transform: translateX(50%);
}

html[dir="rtl"] .footer-brand p {
  margin-right: 0;
}