/* ====== components.css ====== */

/* -------- Buttons -------- */
.btn-primary-custom {
  background: var(--gradient-primary);
  color: var(--white) !important;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  transition: var(--transition-smooth);
  display: inline-flex; align-items: center; gap: 10px;
  position: relative;
  overflow: hidden;
  font-family: var(--font-secondary);
  letter-spacing: 0.3px;
}

.btn-primary-custom::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-primary-custom:hover::before { opacity: 1; }

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
}

.btn-primary-custom > * { position: relative; z-index: 1; }
.btn-full-width { width: 100%; justify-content: center; }

.btn-primary-custom,
.btn-light-custom,
.btn-outline-custom,
.header-cta { position: relative; overflow: hidden; }

/* -------- Ripple Effect -------- */
.ripple-effect {
  position: absolute;
  width: 20px; height: 20px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
  z-index: 1;
}

/* -------- Service Cards -------- */
.services-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-section);
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 45px 30px;
  text-align: center; /* Centered card layout */
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
  z-index: 2;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: var(--primary-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 30px rgba(var(--primary-rgb), 0.05);
}

[data-theme="dark"] .service-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(var(--primary-light-rgb), 0.15);
}

.service-card .icon-wrap {
  width: 75px; height: 75px;
  background: rgba(var(--primary-rgb), 0.06);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: 50%; /* sleek circular badge */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.4s ease;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.service-card:hover .icon-wrap {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--white);
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
}

.service-card .icon-wrap i {
  font-size: 28px;
  color: var(--primary);
  transition: all 0.4s ease;
}

.service-card:hover .icon-wrap i {
  color: var(--white);
}

.service-card h3 {
  font-family: var(--font-primary);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 15px;
  line-height: 1.4;
  transition: color 0.3s;
}

.service-card:hover h3 {
  color: var(--primary);
}

.service-card p {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 24px;
}

/* Bullet list (Centered wrapper, RTL items) */
.service-check-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px;
  display: inline-block;
  text-align: right;
  width: fit-content;
}

.service-check-list li {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.service-check-list li i {
  color: #10b981; /* emerald green */
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.service-card:hover .service-check-list li i {
  background: #10b981;
  color: var(--white);
  transform: scale(1.1);
}

/* Bottom request link button */
.service-card .service-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-card .service-link i {
  transition: transform 0.3s ease;
}

.service-card:hover .service-link {
  color: var(--primary-light);
}

.service-card:hover .service-link i {
  transform: translateX(-6px); /* move arrow left */
}

/* -------- Portfolio -------- */
.portfolio-section {
  padding: 120px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%; height: 280px;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover img { transform: scale(1.12); }

.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.92) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay h5 {
  color: var(--white);
  font-size: 18px; font-weight: 700;
  margin-bottom: 10px;
  transform: translateY(20px);
  transition: var(--transition) 0.1s;
}

.portfolio-item:hover .portfolio-overlay h5 { transform: translateY(0); }

.portfolio-overlay a {
  width: 45px; height: 45px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transform: translateY(20px);
  transition: var(--transition) 0.15s;
}

.portfolio-item:hover .portfolio-overlay a { transform: translateY(0); }
.portfolio-overlay a:hover { background: var(--white); }

/* -------- About Section -------- */
.about-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 40%;
  height: 100%;
  background: var(--bg-light);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.about-img-wrap {
  position: relative; z-index: 1;
  display: inline-block;
}

.about-img-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  transition: var(--transition);
}

.about-img-wrap:hover img { transform: scale(1.02); }

.about-exp-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 22px 32px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.35);
  z-index: 2;
}

.about-exp-badge .num { display: block; font-size: 34px; font-weight: 800; line-height: 1; }
.about-exp-badge .lbl { font-size: 14px; opacity: 0.9; }

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.about-feat-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: var(--bg-light);
  border-radius: var(--radius);
  font-weight: 600; font-size: 15px;
  color: var(--text);
  transition: var(--transition);
  border-right: 3px solid var(--primary-light);
}

.about-feat-item i {
  color: var(--primary);
  font-size: 16px;
}

.about-feat-item:hover {
  background: rgba(var(--primary-rgb), 0.08);
  border-right-color: var(--primary);
  transform: translateX(-5px);
}

/* -------- Timeline -------- */
.experience-section {
  padding: 120px 0;
  background: var(--bg-light);
  position: relative;
}

.experience-section-compact {
  padding: 80px 0;
}

.experience-section::after {
  content: ''; position: absolute;
  top: 0; right: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(var(--primary-light-rgb), 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.timeline-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.timeline-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition);
}

.timeline-card:hover::after { transform: scaleX(1); }

.timeline-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.timeline-card.full-width { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }
.timeline-card-stretch { height: 100%; }

.timeline-year {
  display: inline-block;
  padding: 5px 18px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 14px;
}

.timeline-card h4 {
  font-size: 19px; font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.timeline-card p { font-size: 15px; color: var(--text-light); line-height: 1.7; }

.timeline-step {
  position: absolute;
  top: 20px; left: 20px;
  font-family: var(--font-display);
  font-size: 48px; font-weight: 800;
  color: rgba(var(--primary-light-rgb), 0.15);
  line-height: 1;
}

/* -------- Contact -------- */
.contact-section {
  padding: 120px 0;
}

.contact-info-card {
  background: var(--primary);
  padding: 50px;
  border-radius: var(--radius-lg);
  color: var(--white);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: ''; position: absolute;
  top: -80px; left: -80px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(var(--primary-light-rgb), 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  margin-bottom: 20px; position: relative;
}

.contact-info-card p { color: var(--primary-light); margin-bottom: 30px; position: relative; }

.contact-detail {
  display: flex; align-items: center; gap: 15px;
  margin-bottom: 20px;
  position: relative;
}

.contact-detail i {
  width: 50px; height: 50px;
  background: rgba(var(--primary-light-rgb), 0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--primary-light);
  transition: var(--transition);
}

.contact-detail:hover i { background: var(--primary-light); color: var(--primary); }

.contact-detail .label { display: block; font-size: 13px; opacity: 0.7; }

.contact-detail .value {
  color: var(--white);
  font-weight: 600; font-size: 16px;
}

.contact-detail .value:hover { color: var(--primary-light); }

.contact-social-links {
  display: flex; gap: 12px;
  margin-top: 30px; position: relative;
}

.contact-social-links a {
  width: 45px; height: 45px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 18px;
  transition: var(--transition);
}

.contact-social-links a:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-5px);
}

.contact-form-card {
  background: var(--white);
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  height: 100%;
}

.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700;
  color: var(--primary);
  margin-bottom: 25px;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-primary);
  transition: var(--transition);
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08);
}

/* -------- Testimonials -------- */
.testimonials-section {
  padding: 80px 0;
  background: var(--bg-section);
}

.testimonials-carousel {
  max-width: 700px;
  margin: 40px auto 0;
  position: relative;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 35px;
  text-align: center;
  box-shadow: var(--shadow);
  display: none;
  animation: fadeInUp 0.5s ease;
}

.testimonial-card.active { display: block; }

.testimonial-stars { margin-bottom: 15px; }
.testimonial-stars i { color: var(--star); margin: 0 2px; font-size: 16px; }

.testimonial-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.testimonial-author strong { display: block; font-size: 15px; color: var(--text); }
.testimonial-author span { font-size: 13px; color: var(--text-muted); }

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.testimonial-dots .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dots .dot.active { background: var(--primary); width: 28px; border-radius: 5px; }

/* -------- Clients Marquee -------- */
.clients-section {
  padding: 60px 0;
  background: var(--bg-dark);
}

.clients-marquee {
  overflow: hidden;
  margin-top: 30px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.clients-track {
  display: flex;
  gap: 40px;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}

.client-logo {
  flex-shrink: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.client-logo img { height: 100%; width: auto; }
.client-logo:hover { opacity: 1; filter: none; }

/* -------- FAQ -------- */
.faq-section {
  padding: 80px 0;
  background: var(--bg-section);
}

.faq-list { margin-top: 40px; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.faq-item:hover { box-shadow: var(--shadow-hover); }

.faq-question {
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  gap: 15px;
  user-select: none;
}

.faq-question i {
  transition: transform 0.4s ease;
  font-size: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.4s ease;
  padding: 0 25px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 25px 20px;
}

/* -------- Preloader -------- */
#preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s, visibility 0.8s;
}

#preloader.hide { opacity: 0; visibility: hidden; }

#preloader .loader-logo {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}

#preloader .loader-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.loader-ring {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--primary-light);
  border-right-color: var(--accent);
  animation: spin 1.2s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

.loader-ring::after {
  content: '';
  position: absolute; inset: 6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: var(--primary-light);
  border-left-color: var(--accent);
  animation: spin 0.8s cubic-bezier(0.6, 0, 0.4, 1) infinite reverse;
}

.loader-progress {
  width: 160px; height: 3px;
  background: rgba(var(--primary-light-rgb), 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 15px;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 10px;
  animation: loadProgress 2s ease-in-out forwards;
}

.loader-text {
  margin-top: 20px;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 13px;
  font-family: var(--font-secondary);
  letter-spacing: 1px;
  animation: pulseText 1.5s ease-in-out infinite;
}

/* -------- Toast Notification -------- */
.toast-container {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
}

.toast-notification {
  background: var(--card-bg);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  pointer-events: auto;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  animation: toastSlideIn 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  direction: ltr;
}
[dir="rtl"] .toast-notification {
  direction: rtl;
}

.toast-notification i {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
}
.toast-notification .toast-msg {
  flex: 1;
  color: var(--text);
  line-height: 1.4;
}

/* Toast Types */
.toast-notification.toast-success i {
  background: rgba(var(--success-rgb, 16, 185, 129), 0.1);
  color: var(--success, #10B981);
}
.toast-notification.toast-error i {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}
.toast-notification.toast-info i {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

/* Toast Progress Bar */
.toast-notification::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--success, #10B981);
  animation: toastProgress 3s linear forwards;
}
.toast-notification.toast-error::after {
  background: var(--accent);
}
.toast-notification.toast-info::after {
  background: var(--primary);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
[dir="rtl"] .toast-notification {
  animation-name: toastSlideInRTL;
}
@keyframes toastSlideInRTL {
  from {
    opacity: 0;
    transform: translateX(-100%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

.toast-notification.toast-out {
  animation: toastSlideOut 0.3s ease forwards !important;
}
@keyframes toastSlideOut {
  to {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
  }
}

[data-theme="dark"] .toast-notification {
  background: var(--card-bg);
  border-color: var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* Undo Toast */
.toast-notification.toast-undo {
  padding: 10px 16px;
  gap: 8px;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  direction: ltr;
}
[dir="rtl"] .toast-notification.toast-undo {
  direction: rtl;
}
.toast-notification.toast-undo .toast-msg {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  flex: 1;
}
.toast-notification.toast-undo .toast-undo-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.toast-notification.toast-undo .toast-undo-btn:hover {
  background: rgba(255,255,255,0.35);
}
.toast-notification.toast-undo::after {
  background: rgba(255,255,255,0.3);
}

/* -------- Scroll to Top -------- */
.scroll-top-btn {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 50px; height: 50px;
  background: var(--primary);
  color: var(--white);
  border: none; border-radius: 50%;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 999;
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}

.scroll-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }

.scroll-top-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* -------- WhatsApp Float -------- */
.whatsapp-float {
  position: fixed;
  bottom: 90px; right: 25px;
  width: 52px; height: 52px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0 6px 30px rgba(37,211,102,0.6);
}

/* -------- Page Breadcrumb -------- */
.page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.page-breadcrumb a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.page-breadcrumb a:hover { color: var(--primary-light); }
.page-breadcrumb span { color: rgba(255,255,255,0.4); font-size: 12px; }
.page-breadcrumb .current { color: var(--primary-light); font-weight: 600; }

/* -------- Hide Nav -------- */
.site-header.hide-nav {
  transform: translateY(-100%);
}

/* -------- Enhanced Hover Glow -------- */
.timeline-card, .portfolio-item {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s;
}

.timeline-card:hover {
  box-shadow: 0 20px 50px rgba(var(--primary-rgb), 0.12);
}

/* -------- Image Zoom -------- */
.img-zoom-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.img-zoom-wrap img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom-wrap:hover img {
  transform: scale(1.08);
}

/* -------- Confetti -------- */
.confetti-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px; height: 10px;
  top: -10px;
  animation: confettiFall 3s linear forwards;
}

/* ====== GLASS CARD ====== */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}
.glass-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(var(--primary-light-rgb), 0.25);
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  transform: translateY(-4px);
}
[data-theme="dark"] .glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .glass-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(126,200,227,0.15);
}

/* ====== GLOW TEXT ====== */
.glow-text {
  text-shadow: 0 0 20px rgba(var(--primary-light-rgb), 0.3), 0 0 40px rgba(var(--primary-rgb), 0.15);
}
.glow-text-accent {
  text-shadow: 0 0 20px rgba(230,57,70,0.3), 0 0 40px rgba(230,57,70,0.15);
}

/* ====== GLOW BORDER ====== */
.glow-border {
  position: relative;
  border: 1px solid transparent;
  background-clip: padding-box;
}
.glow-border::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--primary-light));
  z-index: -1;
  opacity: 0.4;
  transition: opacity 0.4s;
}
.glow-border:hover::before { opacity: 0.8; }

/* ====== RTL OVERRIDES ====== */
[dir="rtl"] .scroll-top-btn { left: auto; right: 30px; }
[dir="rtl"] .whatsapp-float { left: auto; right: 25px; }
[dir="rtl"] .timeline-step { left: auto; right: 20px; }
[dir="rtl"] .about-exp-badge { right: auto; left: -20px; }
[dir="rtl"] .footer-title::after { right: auto; left: 0; }
[dir="rtl"] .about-feat-item:hover { transform: translateX(5px); }

/* ====== INDEX PAGE UTILITY CLASSES ====== */
.about-text { font-size: 17px; color: var(--text-light); line-height: 1.8; margin-bottom: 15px; }
.about-text-sm { font-size: 16px; color: var(--text-light); line-height: 1.8; margin-bottom: 25px; }
.about-philosophy { font-size: 15px; color: var(--text-muted); margin-bottom: 25px; font-weight: 600; }
.service-subtitle { font-size: 14px; color: var(--primary-light); font-weight: 500; }
.cta-phone-text { color: var(--primary); font-weight: 700; font-size: 24px; direction: ltr; }
.cta-subtext { color: var(--text-light); margin-bottom: 25px; }

/* Service check lists (services page) */
.about-vision-card { text-align: right; }
.about-vision-icon { margin: 0 0 20px; }

/* ====== PORTFOLIO PAGE ITEMS ====== */
.portfolio-page-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  height: 300px;
}
.portfolio-page-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.portfolio-page-item:hover img { transform: scale(1.12); }
.portfolio-page-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.92) 0%, transparent 60%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.portfolio-page-item:hover .overlay { opacity: 1; }
.portfolio-page-item .overlay h4 {
  color: var(--white);
  font-size: 18px; font-weight: 700;
  margin-bottom: 10px;
  transform: translateY(20px);
  transition: var(--transition) 0.1s;
}
.portfolio-page-item:hover .overlay h4 { transform: translateY(0); }
.portfolio-page-item .overlay a {
  width: 45px; height: 45px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transform: translateY(20px);
  transition: var(--transition) 0.15s;
}
.portfolio-page-item:hover .overlay a { transform: translateY(0); }
.portfolio-page-item .overlay a:hover { background: var(--white); }

/* ====== MAP SECTION (Contact page) ====== */
.map-section {
  height: 400px;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}
.map-section iframe {
  width: 100%; height: 100%;
  border: none;
}
.map-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--bg-section);
  color: var(--text-light);
}
.map-placeholder i { font-size: 50px; color: var(--primary); margin-bottom: 15px; }
.map-title { color: var(--primary); font-weight: 700; }
.map-subtitle { color: var(--text-light); }

/* ============================================================
   Landed Template Features & Icon Grid Styles
   ============================================================ */

#four {
  padding: 100px 0;
  background: var(--bg-section);
  text-align: center;
}

#four .major {
  margin-bottom: 60px;
}

#four .major h2 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 15px;
}

#four .major p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Feature grid structure */
.gtr-uniform {
  margin-top: 40px;
}

.gtr-uniform section {
  padding: 40px 30px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gtr-uniform section:hover {
  transform: translateY(-8px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-hover);
}

/* Major circular icons */
.icon.major {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-light-rgb), 0.2));
  border: 2px solid rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
  font-size: 32px;
  margin-bottom: 25px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.icon.major::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.icon.major:hover {
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
}

.icon.major:hover::before {
  opacity: 1;
}

.icon.major i, .icon.major::after {
  position: relative;
  z-index: 2;
}

/* Feature texts */
.gtr-uniform section h3 {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.gtr-uniform section p {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* Five: Newsletter Section Form style */
#five {
  padding: 100px 0;
  background: var(--primary-darker);
  color: var(--white);
  text-align: center;
  position: relative;
}

#five h2 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 15px;
}

#five p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 40px;
}

#five form.cta {
  max-width: 650px;
  margin: 0 auto;
}

#five form.cta input[type="email"] {
  width: 100%;
  padding: 15px 25px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 15px;
  transition: var(--transition);
}

#five form.cta input[type="email"]:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-light);
  outline: none;
}

#five form.cta input[type="submit"] {
  width: 100%;
  padding: 15px 30px;
  border-radius: 50px;
  border: none;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
}

/* Dark mode specific adjustments for feature section */
[data-theme="dark"] .gtr-uniform section {
  background: var(--card-bg);
  border-color: var(--border);
}

[data-theme="dark"] #four {
  background: var(--bg-dark);
}

/* -------- Block Editor Content -------- */
.page-content-section {
  padding: 40px 0;
}

.page-content-section > .container > *:last-child {
  margin-bottom: 0;
}

.page-content-section h1,
.page-content-section h2,
.page-content-section h3,
.page-content-section h4,
.page-content-section h5,
.page-content-section h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.page-content-section h1 { font-size: 36px; }
.page-content-section h2 { font-size: 28px; }
.page-content-section h3 { font-size: 24px; }
.page-content-section h4 { font-size: 20px; }
.page-content-section h5 { font-size: 18px; }
.page-content-section h6 { font-size: 16px; }

.page-content-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.page-content-section a {
  color: var(--primary);
  text-decoration: none;
}

.page-content-section a:hover {
  color: var(--primary-dark);
}

.page-content-section img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.page-content-section ul,
.page-content-section ol {
  margin-bottom: 16px;
  padding-right: 24px;
}

.page-content-section li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.page-content-section .wp-block-image {
  margin-bottom: 16px;
}

.page-content-section .wp-block-image img {
  border-radius: var(--radius);
}

.page-content-section .wp-block-gallery {
  margin-bottom: 16px;
}

.page-content-section .wp-block-cover {
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  min-height: 300px;
}

.page-content-section .wp-block-button {
  margin-bottom: 16px;
}

.page-content-section .wp-block-table {
  margin-bottom: 16px;
}

.page-content-section .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.page-content-section .wp-block-table th,
.page-content-section .wp-block-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
}

.page-content-section .wp-block-table th {
  background: var(--bg-dark);
  font-weight: 700;
}

.page-content-section .wp-block-quote {
  border-right: 4px solid var(--primary);
  padding: 16px 24px;
  background: var(--bg-section);
  border-radius: 0 12px 12px 0;
  margin-bottom: 16px;
}

.page-content-section .wp-block-separator {
  margin: 24px 0;
  border: none;
  height: 2px;
  background: var(--border);
}

.page-content-section .wp-block-columns {
  gap: 24px;
  margin-bottom: 16px;
}

.page-content-section iframe {
  max-width: 100%;
  border-radius: var(--radius);
}

[data-theme="dark"] .page-content-section {
  color: var(--text);
}

[data-theme="dark"] .page-content-section .wp-block-table th {
  background: var(--bg-dark);
}

[data-theme="dark"] .page-content-section .wp-block-quote {
  background: var(--bg-section);
}
