/* ==============================================
   Mehran Services – mstaxsolution.com
   Shared Stylesheet  |  Brand: Blue #0e5382 + Red #d73336
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ---- Root Variables ---- */
:root {
  --blue:        #0e5382;
  --blue-dark:   #093d61;
  --blue-mid:    #1565c0;
  --blue-light:  #42a5f5;
  --blue-pale:   #e8f4fc;
  --red:         #c0282b;
  --red-dark:    #9a1c1e;
  --red-light:   #e04548;
  --red-pale:    #fce8e8;
  --white:       #ffffff;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --gray-800:    #1e293b;
  --gray-900:    #0f172a;
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-mid); }

/* =====================
   NAVBAR
   ===================== */
#navbar { transition: box-shadow 0.3s ease, background-color 0.3s ease; }
#navbar.scrolled { box-shadow: 0 2px 20px rgba(14,83,130,0.13); }

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
  border-radius: 1px;
}
.nav-link:hover { color: var(--blue); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--red) !important; font-weight: 600; }

#mobile-menu { transition: transform 0.3s ease, opacity 0.3s ease; }
#mobile-menu.hidden { transform: translateY(-10px); opacity: 0; pointer-events: none; }
#mobile-menu.open  { transform: translateY(0); opacity: 1; pointer-events: auto; }

/* =====================
   HERO / PAGE BANNERS
   ===================== */
.hero-pattern {
  background-color: var(--blue-dark);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(215,51,54,0.14) 0%, transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.05) 0%, transparent 40%),
    radial-gradient(circle at 60% 85%, rgba(21,101,192,0.22) 0%, transparent 45%);
  position: relative;
}

.page-banner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, var(--blue-mid) 100%);
  padding-top: 110px !important;   /* overrides Tailwind pt-16 (64px) injected after this file */
  padding-bottom: 72px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* =====================
   BUTTONS
   ===================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 28px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid var(--red);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(215,51,54,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 26px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.55);
  cursor: pointer;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 26px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid var(--blue);
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14,83,130,0.25);
}

/* =====================
   CARDS
   ===================== */
.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 30px 22px;
  box-shadow: 0 2px 16px rgba(14,83,130,0.07);
  transition: all 0.35s ease;
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}
.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 48px rgba(14,83,130,0.13);
  border-color: rgba(14,83,130,0.12);
}
.service-card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  background: var(--blue-pale);
  color: var(--blue);
  transition: all 0.3s ease;
}
.service-card:hover .card-icon {
  background: var(--blue);
  color: var(--white);
  transform: rotate(6deg) scale(1.08);
}

/* =====================
   PAGE BANNER BADGE (white/glass style for dark backgrounds)
   ===================== */
.page-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.22);
}

/* =====================
   SECTION HEADERS
   ===================== */
.section-badge {
  display: inline-block;
  background: var(--red-pale);
  color: var(--red-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 10px;
  border: 1px solid rgba(215,51,54,0.2);
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.2;
}

.section-divider {
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  border-radius: 2px;
  margin: 14px auto 0;
}

/* =====================
   PROCESS STEPS
   ===================== */
.process-step { position: relative; }
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px; left: calc(50% + 32px);
  width: calc(100% - 64px); height: 2px;
  background: linear-gradient(90deg, var(--red), rgba(215,51,54,0.1));
}
@media (max-width: 768px) { .process-step:not(:last-child)::after { display: none; } }

.step-number {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border: 3px solid rgba(215,51,54,0.25);
  transition: all 0.3s ease;
}
.process-step:hover .step-number { background: var(--red); border-color: var(--blue); }

/* =====================
   FAQ
   ===================== */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  transition: box-shadow 0.3s ease;
}
.faq-item:hover { box-shadow: 0 4px 14px rgba(14,83,130,0.08); }
.faq-question {
  width: 100%; text-align: left;
  padding: 18px 22px;
  background: var(--white);
  border: none; cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 0.92rem;
  color: var(--gray-800);
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s ease;
}
.faq-question:hover { background: var(--gray-50); }
.faq-question.active { background: var(--blue-pale); color: var(--blue); }
.faq-icon { transition: transform 0.3s ease; flex-shrink: 0; margin-left: 14px; }
.faq-question.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-answer.open { max-height: 400px; padding: 0 22px 18px; }

/* =====================
   PORTFOLIO
   ===================== */
.portfolio-card {
  border-radius: 14px; overflow: hidden;
  position: relative; aspect-ratio: 4/3; cursor: pointer;
}
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-card:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,61,97,0.93) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.35s ease;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

/* =====================
   CONTACT FORM
   ===================== */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 15px;
  border: 2px solid var(--gray-200); border-radius: 9px;
  font-family: 'Poppins', sans-serif; font-size: 0.88rem;
  color: var(--gray-800); background: var(--white);
  transition: all 0.25s ease; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14,83,130,0.09);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-400); }
.form-textarea { resize: vertical; min-height: 130px; }

/* =====================
   STATS
   ===================== */
.stat-number { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; color: var(--red); line-height: 1; display: block; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.72); margin-top: 5px; font-weight: 500; }

/* =====================
   FOOTER
   ===================== */
.footer-link {
  color: rgba(255,255,255,0.6); font-size: 0.875rem;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none; display: inline-block; margin-bottom: 8px;
}
.footer-link:hover { color: var(--red); transform: translateX(4px); }

.social-btn {
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65); font-size: 0.95rem;
  transition: all 0.25s ease; text-decoration: none;
}
.social-btn:hover { background: var(--red); color: var(--white); border-color: var(--red); transform: translateY(-3px); }

/* =====================
   TAGS / PILLS
   ===================== */
.tag-pill { display: inline-block; padding: 3px 11px; border-radius: 100px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; }
.tag-blue  { background: var(--blue-pale);  color: var(--blue); }
.tag-red   { background: var(--red-pale);   color: var(--red-dark); }
.tag-green { background: rgba(16,185,129,0.1); color: #059669; }

/* =====================
   FEATURE LIST
   ===================== */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 0.9rem; color: var(--gray-600); }
.feature-list li i { color: var(--red); font-size: 0.95rem; margin-top: 3px; flex-shrink: 0; }

/* =====================
   TECH ICONS
   ===================== */
.tech-icon {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 18px; border-radius: 14px; background: var(--white);
  border: 1px solid var(--gray-200); transition: all 0.3s ease; text-align: center;
}
.tech-icon:hover { border-color: var(--blue); box-shadow: 0 8px 24px rgba(14,83,130,0.1); transform: translateY(-4px); }
.tech-icon i { font-size: 1.9rem; color: var(--blue); }
.tech-icon span { font-size: 0.72rem; font-weight: 600; color: var(--gray-600); }

/* =====================
   UTILITIES
   ===================== */
.bg-blue-gradient { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, var(--blue-mid) 100%); }
.divider-line { border: none; height: 1px; background: linear-gradient(90deg, transparent, var(--gray-200), transparent); }
.text-grad-blue { background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-grad-red { background: linear-gradient(135deg, var(--red-dark), var(--red-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 0 rgba(215,51,54,0.4); } 50% { box-shadow: 0 0 0 12px rgba(215,51,54,0); } }

.animate-fade-up { animation: fadeInUp 0.7s ease forwards; }
.animate-float   { animation: float 4s ease-in-out infinite; }
.animate-pulse-r { animation: pulse-red 2.5s infinite; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* =====================
   BACK TO TOP
   ===================== */
#backToTop {
  position: fixed; bottom: 26px; right: 26px;
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--blue); color: var(--white); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  box-shadow: 0 4px 16px rgba(14,83,130,0.3); transition: all 0.3s ease;
  opacity: 0; pointer-events: none; z-index: 999;
}
#backToTop.show { opacity: 1; pointer-events: auto; }
#backToTop:hover { background: var(--red); transform: translateY(-3px); }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 640px) {
  .btn-primary, .btn-secondary, .btn-outline { padding: 11px 22px; font-size: 0.85rem; }
  .service-card { padding: 22px 18px; }
  .section-title { font-size: 1.6rem; }
}
