/* ============================================================
   YarlNexus IT Solutions – Custom Stylesheet
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:      #2647C3;
  --primary-dark: #352D7E;
  --secondary:    #352D7E;
  --accent:       #7A4DFF;
  --accent-soft:  #8A9AFE;
  --success:   #198754;
  --danger:    #DC3545;
  --dark:      #1B1D34;
  --light:     #F7F8FC;
  --muted:     #64748B;
  --gradient:  linear-gradient(135deg, #2647C3 0%, #352D7E 100%);
  --gradient2: linear-gradient(135deg, #7A4DFF 0%, #2647C3 100%);
  --bs-primary: #2647C3;
  --bs-primary-rgb: 38, 71, 195;
  --bs-link-color: #2647C3;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.18);
  --radius:    12px;
  --transition: all .3s ease;
}

/* ── Global ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 80px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: #fff;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

section, footer { overflow-x: clip; }

a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; }

h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; color: var(--dark); line-height: 1.3; }

/* ── Utility classes ────────────────────────────────────────── */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary { background: var
.text-muted { color: var(--muted) !important; }
.bg-light { background-color: var(--light) !important; }(--gradient) !important; }
.bg-gradient-accent  { background: var(--gradient2) !important; }

.section-padding { padding: 100px 0; }
.section-padding-sm { padding: 60px 0; }

/* Section heading */
.section-badge {
  display: inline-block;
  background: rgba(38,71,195,.1);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 50px;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  padding: 12px 0;
  transition: var(--transition);
  background: #fff !important;
  box-shadow: 0 2px 20px rgba(15,23,42,.06);
}

.navbar.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 24px rgba(15,23,42,.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark) !important;
}
.navbar.scrolled .navbar-brand { color: var(--dark) !important; }

.navbar-brand span { color: var(--accent); }

/* Text brand: gradient monogram + wordmark */
.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-right: 0;
}
.brand-mark {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient2);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.5px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(122,77,255,.35);
}
.brand-name {
  display: block;
  white-space: nowrap;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1;
}
.brand-name > span { color: var(--accent); }
.brand-name small {
  display: block;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  opacity: .75;
  margin-top: 5px;
}
.navbar-brand .brand-mark, .footer-brand .brand-mark { color: #fff; }
.navbar-brand .brand-name, .footer-brand .brand-name { color: inherit; }
.footer-brand .brand-name > span { color: var(--accent-soft); }
.navbar-brand .brand-name > span { color: var(--accent); }
.footer-brand.brand-text { color: #fff; }
.footer-brand .brand-name { font-size: 1.5rem; }

@media (max-width: 575px) {
  .brand-mark { width: 36px; height: 36px; font-size: .95rem; border-radius: 10px; }
  .brand-name { font-size: 1.25rem; }
  .brand-name small { font-size: .52rem; letter-spacing: 2.6px; }
}

.navbar-toggler {
  color: var(--dark);
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.15rem;
  line-height: 1;
  min-width: 44px;
  min-height: 40px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(122,77,255,.3); }
.navbar.scrolled .navbar-toggler,
.navbar.menu-open .navbar-toggler { color: var(--dark); border-color: rgba(0,0,0,.2); }

.navbar .hero-btn-primary {
  background: var(--gradient);
  color: #fff;
  padding: 10px 26px !important;
  font-size: .9rem;
  box-shadow: 0 4px 20px rgba(38,71,195,.3);
}
.navbar .hero-btn-primary:hover { color: #fff; }

.nav-link {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 500;
  font-size: .92rem;
  color: #1B1D34 !important;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: var(--transition);
}
.navbar.scrolled .nav-link { color: var(--dark) !important; }
.nav-link:hover, .nav-link.active {
  color: var(--accent) !important;
  background: rgba(122,77,255,.1);
}

/* Mega menu */
.mega-menu {
  width: 700px;
  padding: 28px;
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  left: 50%;
  transform: translateX(-50%);
}

.mega-menu-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
}

.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: .88rem;
  color: #555;
  transition: var(--transition);
}
.mega-menu-item:hover {
  background: rgba(38,71,195,.06);
  color: var(--primary);
  transform: translateX(4px);
}
.mega-menu-item i { width: 18px; color: var(--primary); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background: var(--gradient);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::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.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
  animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-title .highlight {
  color: var(--accent-soft);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-btn-primary {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
  color: var(--primary);
}

.hero-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
  padding: 13px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}
.hero-btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.hero-stat-item { text-align: left; }
.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.75);
  margin-top: 4px;
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
}

.hero-floating-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
  animation: float-card 4s ease-in-out infinite;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero-floating-card.card-1 { top: 10%; right: -40px; animation-delay: 0s; }
.hero-floating-card.card-2 { bottom: 20%; left: -40px; animation-delay: 2s; }
.hero-floating-card .icon-circle {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary-custom {
  background: var(--gradient);
  border: none;
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(38,71,195,.3);
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(38,71,195,.4);
  color: #fff;
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 11px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Service Cards ──────────────────────────────────────────── */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid rgba(0,0,0,.06);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px; height: 64px;
  background: rgba(38,71,195,.1);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient);
  color: #fff;
  transform: rotateY(360deg);
}

.service-card h4 { font-size: 1.1rem; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: .9rem; line-height: 1.7; margin-bottom: 0; }

/* ── Project Cards ──────────────────────────────────────────── */
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: #fff;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.project-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.project-card:hover .project-card-img img { transform: scale(1.08); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
}

.project-card:hover .project-overlay { opacity: .9; }

.project-overlay a {
  width: 44px; height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  transition: var(--transition);
}
.project-overlay a:hover { transform: scale(1.1); }

.project-card-body { padding: 22px; }
.project-card-category {
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.project-card-body h4 { font-size: 1rem; margin: 8px 0 4px; }
.project-card-body .client { font-size: .85rem; color: var(--muted); }

/* ── Filter Buttons ─────────────────────────────────────────── */
.filter-btn {
  background: transparent;
  border: 2px solid #e0e0e0;
  color: #666;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

/* ── Stats / Counter ────────────────────────────────────────── */
.stat-card {
  text-align: center;
  padding: 40px 20px;
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { color: var(--muted); font-size: .95rem; margin-top: 10px; }

/* ── Testimonials ───────────────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.05);
  height: 100%;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--primary);
  opacity: .1;
  position: absolute;
  top: 10px; left: 24px;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-stars { color: #ffc107; margin-bottom: 16px; }
.testimonial-text { font-style: italic; color: #555; line-height: 1.8; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(38,71,195,.2);
}
.testimonial-avatar-placeholder {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem; font-weight: 700;
}
.testimonial-name { font-weight: 700; font-size: .95rem; }
.testimonial-company { font-size: .8rem; color: var(--muted); }

/* ── Blog Cards ─────────────────────────────────────────────── */
.blog-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 22px; }
.blog-card-category {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.blog-card-body h5 { font-size: 1rem; margin-bottom: 10px; }
.blog-card-body p { font-size: .88rem; color: var(--muted); line-height: 1.7; }
.blog-meta { font-size: .8rem; color: #aaa; display: flex; gap: 16px; margin-top: 14px; }
.blog-meta i { margin-right: 4px; color: var(--primary); }

/* ── Pricing Cards ──────────────────────────────────────────── */
.pricing-card {
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 2px solid #f0f0f0;
  transition: var(--transition);
  height: 100%;
  text-align: center;
  background: #fff;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(38,71,195,.2);
  transform: translateY(-12px);
}
.pricing-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.pricing-badge {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.pricing-name { font-size: 1.4rem; margin-bottom: 8px; }
.pricing-price { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.pricing-period { font-size: .85rem; color: #aaa; margin-bottom: 28px; }
.pricing-features { list-style: none; padding: 0; margin-bottom: 32px; text-align: left; }
.pricing-features li {
  padding: 9px 0;
  border-bottom: 1px dashed #eee;
  font-size: .9rem;
  color: #555;
}
.pricing-features li::before { content: '✓ '; color: var(--success); font-weight: 700; margin-right: 8px; }
.pricing-features li.disabled { color: #ccc; }
.pricing-features li.disabled::before { content: '✗ '; color: #ddd; }

/* ── Contact ────────────────────────────────────────────────── */
.contact-info-card {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 40px;
  color: #fff;
  height: 100%;
}
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.contact-info-icon {
  width: 46px; height: 46px;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-text h6 { font-size: .8rem; color: rgba(255,255,255,.75); font-weight: 500; }
.contact-info-text p { font-size: .95rem; color: #fff; margin-bottom: 0; font-weight: 500; }

.contact-form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-control-custom {
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .93rem;
  transition: var(--transition);
}
.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(38,71,195,.1);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
}
.footer-brand { font-size: 1.5rem; font-weight: 800; color: #fff; }
.footer-brand span { color: var(--accent-soft); }
.footer h6 { color: #fff; font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.footer-link { display: block; color: rgba(255,255,255,.6); font-size: .88rem; margin-bottom: 10px; transition: var(--transition); }
.footer-link:hover { color: var(--accent-soft); padding-left: 8px; }
.footer-social {
  display: flex; gap: 10px; margin-top: 20px;
}
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gradient); color: #fff; transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 0;
  font-size: .85rem;
  text-align: center;
}

/* ── Back to top ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 46px; height: 46px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(38,71,195,.4);
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
  padding: 0;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; }
.back-to-top.visible:hover { transform: translateY(-4px) scale(1.08); }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 30px; left: 30px;
  width: 54px; height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 999;
  transition: var(--transition);
  animation: whatsapp-pulse 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,.8); }
}

/* ── Page hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: var(--gradient);
  padding: 120px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::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'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: #fff; position: relative; z-index: 1; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb-item.active { color: #fff; }
.page-hero .breadcrumb-divider { color: rgba(255,255,255,.5); }
/* ── Light 3D hero shapes ──────────────────────────────────── */
.page-hero .container, .hero-section .container { position: relative; z-index: 2; }

.hero-3d {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 1100px;
  z-index: 1;
}

.shape {
  position: absolute;
  transform-style: preserve-3d;
  animation: shape-float 7s ease-in-out infinite;
  translate: calc(var(--mx, 0) * var(--px, 24px)) calc(var(--my, 0) * var(--py, 16px));
  transition: translate .25s ease-out;
}
@keyframes shape-float { 50% { transform: translateY(-18px); } }
.shape.s1 { --s: 100px; --d: 22s; --px: -30px; --py: -20px; right: 11%; top: 24%; }
.shape.s2 { --s: 56px;  --d: 16s; --px: 20px;  --py: 12px;  right: 30%; top: 64%; animation-delay: -2s; }
.shape.s3 { --s: 34px;  --d: 12s; --px: -12px; --py: 10px;  right: 5%;  top: 70%; animation-delay: -4s; }

.cube {
  position: relative;
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
  animation: cube-spin var(--d) linear infinite;
}
.cube i {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.07);
}
.cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
@keyframes cube-spin {
  from { transform: rotateX(-20deg) rotateY(0deg); }
  to   { transform: rotateX(340deg) rotateY(360deg); }
}

@media (max-width: 767px) {
  .shape.s1 { --s: 60px; top: 16%; }
  .shape.s2 { --s: 36px; right: 22%; top: 72%; }
  .shape.s3 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .shape, .cube { animation: none !important; }
}
/* ── Team & Branches ────────────────────────────────────────── */
.team-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
  text-align: center;
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.team-photo {
  aspect-ratio: 1 / 1;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-initial { font-size: 4rem; font-weight: 800; color: rgba(255,255,255,.9); }
.team-body { padding: 22px 20px 24px; }
.team-body h5 { font-size: 1.1rem; margin-bottom: 4px; }
.team-position { color: var(--primary); font-weight: 600; font-size: .9rem; }
.team-dept {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  border-radius: 50px;
  background: rgba(122,77,255,.1);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
}
.team-bio { color: var(--muted); font-size: .86rem; line-height: 1.7; margin: 12px 0 0; }
.team-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.team-links a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--light);
  color: var(--primary);
  font-size: .82rem;
}
.team-links a:hover { background: var(--gradient); color: #fff; transform: translateY(-3px); }

.branch-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.branch-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.branch-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; position: relative; }
.branch-head h5 { font-size: 1.05rem; margin: 0; }
.branch-head small { color: var(--muted); }
.branch-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(38,71,195,.1);
  color: var(--primary);
  font-size: 1.15rem;
}
.branch-tag {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--gradient);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  white-space: nowrap;
}
.branch-info { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.branch-info li { display: flex; gap: 12px; margin-bottom: 10px; font-size: .9rem; color: var(--muted); }
.branch-info i { width: 16px; margin-top: 4px; color: var(--accent); flex-shrink: 0; }
.branch-info a:hover { color: var(--primary); }
.branch-card .btn { align-self: flex-start; }

/* ── Lightbox gallery ───────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gallery-item { border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fadeInUp { animation: fadeInUp .7s ease forwards; }

/* ── Page transitions ───────────────────────────────────────── */
.page-transition { animation: fadeInUp .5s ease; }

/* ── Responsive ─────────────────────────────────────────────── */
.mega-menu { max-width: calc(100vw - 2rem); }

@media (max-width: 991px) {
  .navbar { padding: 10px 0; }
  .navbar.menu-open {
    background: rgba(255,255,255,.98) !important;
    box-shadow: var(--shadow-sm);
  }
  .navbar.menu-open .navbar-brand { color: var(--dark) !important; }
  .navbar.menu-open .nav-link { color: var(--dark) !important; }
  .navbar.menu-open .nav-link:hover,
  .navbar.menu-open .nav-link.active { color: var(--primary) !important; background: rgba(38,71,195,.08); }
  .navbar.menu-open .hero-btn-primary {
    background: var(--gradient);
    color: #fff;
    display: block;
    text-align: center;
    box-shadow: 0 4px 20px rgba(38,71,195,.3);
  }

  .navbar-collapse {
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 14px;
    margin-top: 8px;
    border-top: 1px solid rgba(0,0,0,.08);
  }
  .navbar-nav .nav-link { padding: 12px 14px !important; }
  .navbar-nav .nav-item.ms-lg-2 { margin-top: 10px; }

  .mega-menu {
    position: static;
    width: 100%;
    max-width: 100%;
    transform: none;
    left: 0;
    padding: 14px;
    margin: 4px 0 8px;
    background: #f8f9fa;
    box-shadow: none;
    border: 1px solid rgba(0,0,0,.06);
  }
  .mega-menu .col-md-4 { margin-bottom: 14px; }

  .hero-section .row { padding-top: 110px !important; padding-bottom: 70px !important; min-height: 100vh; }
  .hero-title { font-size: 2.5rem; }
  .section-padding { padding: 70px 0; }
  .pricing-card.featured { transform: none; }
  [style*="position:sticky"] { position: static !important; }
  .footer { margin-top: 3rem !important; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 20px; margin-top: 36px; }
  .stat-number { font-size: 2.2rem; }
  .contact-info-card { padding: 28px; }
  .contact-form-card { padding: 28px; }
  .back-to-top { bottom: calc(20px + env(safe-area-inset-bottom)); right: 16px; width: 42px; height: 42px; }
  .whatsapp-float { bottom: calc(20px + env(safe-area-inset-bottom)); left: 16px; width: 48px; height: 48px; font-size: 1.4rem; }
  .section-padding { padding: 56px 0; }
  .section-subtitle { margin-bottom: 36px; }
  .page-hero { padding: 100px 0 50px; }
  .page-hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero-hide-mobile { display: none !important; }
  .pricing-card { padding: 32px 22px; }
  .testimonial-card { padding: 28px 22px; }
  .footer-bottom { padding-bottom: 76px; }
  .mega-menu .row > [class*="col-"] { width: 100%; }
  iframe { max-width: 100%; }
}

@media (max-width: 575px) {
  .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
  .row.g-5, .row.gy-5 { --bs-gutter-y: 2rem; }
  .hero-actions > a { flex: 1 1 100%; text-align: center; }
  .hero-btn-primary, .hero-btn-outline { padding-left: 24px; padding-right: 24px; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero-badge { font-size: .78rem; padding: 7px 14px; }
  .mini-grid { gap: 12px !important; }
  .mini-grid > div { padding: 18px 12px !important; }
  .col-6 > div[style*="padding:28px"] { padding: 18px 10px !important; }
  .contact-info-card, .contact-form-card { padding: 22px; }
  .section-title { margin-bottom: 12px; }
  .filter-btn { padding: 7px 14px; font-size: .82rem; }
  .pricing-price { font-size: 2.4rem; }
  .stat-card { padding: 28px 12px; }
  .btn.px-5 { padding-left: 1.75rem !important; padding-right: 1.75rem !important; }
  .page-hero .breadcrumb { flex-wrap: wrap; }
  iframe[height="400"] { height: 300px; }
}

@media (hover: none) {
  .service-card:hover, .project-card:hover, .blog-card:hover, .hero-btn-primary:hover,
  .hero-btn-outline:hover, .btn-primary-custom:hover { transform: none; }
}
