@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Brand Identity: Executive Deep Navy (#0F1F2E) */
  --brand-navy: #0F1F2E;
  --brand-navy-dark: #070E15;
  --brand-navy-hover: #18334C;
  --brand-accent: #0F1F2E;
  --brand-accent-glow: rgba(15, 31, 46, 0.2);
  --brand-subtle: rgba(15, 31, 46, 0.05);
  --ice-accent: #94A3B8;
  --brand-blue: #0F1F2E;
  
  /* Afzal.group Clean Off-White & Platinum Surfaces */
  --bg-main: #F8F9FA;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F4F8;
  --bg-subtle-alt: #EBF0F5;
  
  /* Borders & Shadows */
  --border-main: rgba(15, 31, 46, 0.08);
  --border-card: #E5E7EB;
  --border-hover: rgba(15, 31, 46, 0.25);
  
  /* Typography */
  --text-primary: #0F1F2E;
  --text-secondary: #475569;
  --text-muted: #64748B;
  
  /* Afzal Cubic Easing */
  --afzal-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background-color: var(--bg-main);
  color: var(--text-primary);
}

body {
  overflow-x: hidden;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
}

/* World-Class Modern Heading Accent (To'g'ri, zamonaviy, no-italic, yuqori kontrast) */
.font-serif-italic,
.font-heading-accent {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif !important;
  font-style: normal !important;
  font-weight: 800 !important;
  color: var(--brand-navy) !important;
  letter-spacing: -0.025em;
  display: inline;
}

/* ========================================================
   UNIFIED EDITORIAL SECTION HEADER DESIGN SYSTEM
   ======================================================== */
.afzal-section-header {
  margin-bottom: 3.5rem;
  max-width: 52rem;
}

@media (min-width: 640px) {
  .afzal-section-header {
    margin-bottom: 4rem;
  }
}

.afzal-section-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
  color: #0F1F2E;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .afzal-section-title {
    font-size: 2.75rem;
    line-height: 1.08;
  }
}

@media (min-width: 1024px) {
  .afzal-section-title {
    font-size: 3.25rem;
    line-height: 1.06;
  }
}

.afzal-section-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #475569;
  margin-top: 1.25rem;
  max-width: 42rem;
}

@media (min-width: 640px) {
  .afzal-section-desc {
    font-size: 1.05rem;
  }
}

/* Custom Clean Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* 1. Afzal Full-Screen Minimalist Hero Container */
.afzal-hero-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 90px;
  padding-top: 140px;
  background-color: #070E15;
  background-image: 
    linear-gradient(180deg, rgba(7, 14, 21, 0.72) 0%, rgba(7, 14, 21, 0.35) 45%, rgba(7, 14, 21, 0.94) 100%),
    linear-gradient(90deg, rgba(7, 14, 21, 0.82) 0%, rgba(7, 14, 21, 0.35) 55%, rgba(7, 14, 21, 0.10) 100%),
    url('assets/hero-training.jpg?v=safety_center_2026');
  background-position: center 32%;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  color: #FFFFFF;
}

/* Afzal Super Header Navigation */
.afzal-nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: all 0.25s var(--afzal-ease);
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
  text-decoration: none;
}

.afzal-nav-link:hover {
  color: #FFFFFF;
  transform: translateY(-1px);
}

.afzal-nav-link sup {
  font-size: 0.625rem;
  color: #94A3B8;
  font-weight: 700;
  font-family: monospace;
}

/* Afzal Pill Button (Exact hover with rotating circular icon) */
.afzal-pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  color: var(--brand-navy);
  padding: 6px 20px 6px 8px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.28s var(--afzal-ease);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.afzal-pill-cta:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.afzal-pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform 0.3s var(--afzal-ease), background 0.25s ease;
}

.afzal-pill-cta:hover .afzal-pill-icon {
  transform: rotate(45deg);
  background: var(--brand-navy-hover);
}

/* Afzal Primary & Secondary Section Buttons (12px radius, mature navy) */
.btn-afzal-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--brand-navy);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 12px;
  border: 1px solid var(--brand-navy);
  transition: all 0.25s var(--afzal-ease);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(15, 31, 46, 0.15);
}

.btn-afzal-primary:hover {
  background: var(--brand-navy-hover);
  border-color: var(--brand-navy-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 31, 46, 0.25);
}

.btn-afzal-primary .btn-arrow {
  transition: transform 0.25s var(--afzal-ease);
}

.btn-afzal-primary:hover .btn-arrow {
  transform: translate(3px, -2px);
}

.btn-afzal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  background: #FFFFFF;
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 31, 46, 0.15);
  transition: all 0.25s var(--afzal-ease);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 31, 46, 0.04);
}

.btn-afzal-secondary:hover {
  background: var(--bg-subtle);
  border-color: rgba(15, 31, 46, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -4px rgba(15, 31, 46, 0.1);
}

/* Badges (Afzal style: 8px radius, corporate brand tint) */
.afzal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(15, 31, 46, 0.08);
  border: 1px solid rgba(15, 31, 46, 0.22);
  border-radius: 8px;
  color: var(--brand-navy);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.afzal-badge i {
  color: #0F1F2E !important;
}

/* Same badge on dark sections */
.afzal-badge.afzal-badge-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.afzal-badge.afzal-badge-dark i {
  color: #94A3B8 !important;
}

/* Section title / description on dark sections */
.afzal-section-title.afzal-on-dark {
  color: #FFFFFF;
}

.afzal-section-desc.afzal-on-dark {
  color: rgba(255, 255, 255, 0.72);
}

/* Cards (16px radius, crisp white, refined shadow & hover lift) */
.afzal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-main);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15, 31, 46, 0.03), 0 6px 16px -4px rgba(15, 31, 46, 0.04);
  transition: all 0.3s var(--afzal-ease);
}

.afzal-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -8px rgba(15, 31, 46, 0.1);
}

/* Premium Course Cards (Afzal Group Style) */
.afzal-course-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 31, 46, 0.06);
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: 0 1px 2px rgba(15, 31, 46, 0.03);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.afzal-course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0F1F2E, #0F1F2E);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.afzal-course-card:hover {
  border-color: rgba(15, 31, 46, 0.12);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(15, 31, 46, 0.12), 0 4px 12px -4px rgba(15, 31, 46, 0.06);
}

.afzal-course-card:hover::before {
  opacity: 1;
}

/* Filter Tabs (Afzal Pill Style) */
.afzal-filter-btn {
  background: transparent;
  color: #64748B;
  border: 1px solid rgba(15, 31, 46, 0.12);
  padding: 9px 20px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.afzal-filter-btn:hover {
  background: rgba(15, 31, 46, 0.04);
  color: var(--brand-navy);
  border-color: rgba(15, 31, 46, 0.2);
}

.afzal-filter-btn.active {
  background: var(--brand-navy);
  color: #FFFFFF;
  border-color: var(--brand-navy);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 31, 46, 0.25);
}

/* Accordion (FAQ - Clean Afzal style) */
.accordion-item {
  border: 1px solid var(--border-main);
  border-radius: 14px;
  background: #FFFFFF;
  margin-bottom: 0;
  height: fit-content;
  transition: all 0.2s ease;
}

.accordion-item:hover {
  border-color: rgba(15, 31, 46, 0.25);
  box-shadow: 0 4px 12px rgba(15, 31, 46, 0.04);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 16px 22px;
  background: transparent;
  border: none;
  color: var(--brand-navy);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
}

.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(15, 31, 46, 0.04);
  border: 1px solid rgba(15, 31, 46, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--afzal-ease), background 0.2s ease;
  color: var(--brand-navy);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  background: var(--brand-navy);
  color: #FFFFFF;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--afzal-ease), padding 0.3s ease;
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
  padding: 0 24px;
}

.accordion-item.active .accordion-content {
  max-height: 250px;
  padding-bottom: 20px;
}

/* Certificate Card Preview */
.cert-document {
  background: #FFFFFF;
  border: 2px solid var(--brand-navy);
  border-radius: 16px;
  box-shadow: 0 10px 30px -5px rgba(15, 31, 46, 0.08);
  position: relative;
}

.cert-stamp {
  width: 96px;
  height: 96px;
  border: 2px dashed var(--brand-navy);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--brand-navy);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  transform: rotate(-10deg);
  background: rgba(15, 31, 46, 0.04);
}

/* Floating Afzal Widget */
.afzal-float-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(15, 31, 46, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s var(--afzal-ease);
  text-decoration: none;
}

.afzal-float-chat:hover {
  transform: scale(1.1);
  background: var(--brand-navy-hover);
  box-shadow: 0 12px 30px rgba(15, 31, 46, 0.5);
}

/* Afzal Signature Animations */
@keyframes afzalHeroEntrance {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.afzal-hero-anim {
  animation: afzalHeroEntrance 0.85s var(--afzal-ease) both;
}

.afzal-hero-anim-delay-1 {
  animation: afzalHeroEntrance 0.85s var(--afzal-ease) 0.15s both;
}

/* Scroll Reveal - 100% Reliable Visible by default */
.afzal-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.6s var(--afzal-ease), transform 0.6s var(--afzal-ease);
}

.afzal-reveal.is-revealed {
  opacity: 1 !important;
  transform: none !important;
}

.afzal-stagger > * {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.5s var(--afzal-ease), transform 0.5s var(--afzal-ease);
}

.afzal-stagger.is-revealed > *:nth-child(1) { transition-delay: 0.05s; }
.afzal-stagger.is-revealed > *:nth-child(2) { transition-delay: 0.10s; }
.afzal-stagger.is-revealed > *:nth-child(3) { transition-delay: 0.15s; }
.afzal-stagger.is-revealed > *:nth-child(4) { transition-delay: 0.20s; }
.afzal-stagger.is-revealed > *:nth-child(5) { transition-delay: 0.25s; }
.afzal-stagger.is-revealed > *:nth-child(6) { transition-delay: 0.30s; }
.afzal-stagger.is-revealed > *:nth-child(7) { transition-delay: 0.35s; }
.afzal-stagger.is-revealed > *:nth-child(8) { transition-delay: 0.40s; }

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #printableCertificate, #printableCertificate * {
    visibility: visible;
  }
  #printableCertificate {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: white !important;
    color: black !important;
    border: 3px double #333 !important;
  }
}

/* ===================================================
   AFZAL GROUP FRAMER-GRADE ANIMATIONS & COMPONENTS
   =================================================== */

/* Hero Container with Layered Background Animation */
.afzal-hero-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 96px;
  padding-top: 140px;
  background-color: #070E15;
  overflow: hidden;
  color: #FFFFFF;
}

.afzal-hero-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(180deg, rgba(7, 14, 21, 0.72) 0%, rgba(7, 14, 21, 0.32) 45%, rgba(7, 14, 21, 0.94) 100%),
    linear-gradient(90deg, rgba(7, 14, 21, 0.85) 0%, rgba(7, 14, 21, 0.40) 55%, rgba(7, 14, 21, 0.10) 100%),
    url('assets/hero-training.jpg?v=safety_center_2026');
  background-position: center 32%;
  filter: contrast(1.05) brightness(0.92);
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  transform: scale(1.06);
  animation: afzalBgZoom 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 1;
}

@keyframes afzalBgZoom {
  0% {
    transform: scale(1.08);
    filter: brightness(0.85);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.afzal-hero-content {
  position: relative;
  z-index: 10;
}

/* Framer Masked Text Reveal (Text smoothly slides up out of invisible clip mask) */
.text-mask {
  overflow: hidden;
  display: block;
}

.text-mask-item {
  display: block;
  transform: translateY(115%);
  opacity: 0;
  animation: afzalTextReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.text-mask-delay-1 { animation-delay: 0.15s; }
.text-mask-delay-2 { animation-delay: 0.3s; }
.text-mask-delay-3 { animation-delay: 0.45s; }

@keyframes afzalTextReveal {
  0% {
    transform: translateY(115%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

/* Header Slide Down Entrance */
.afzal-header-entrance {
  opacity: 0;
  transform: translateY(-20px);
  animation: afzalNavEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes afzalNavEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation Links (Afzal style with elegant underline slide & number superscript) */
.afzal-nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 6px 0;
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
  transition: color 0.25s ease;
}

.afzal-nav-link:hover, .afzal-nav-link.active {
  color: #FFFFFF;
}

.afzal-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #FFFFFF;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.afzal-nav-link:hover::after, .afzal-nav-link.active::after {
  width: 100%;
}

.afzal-nav-link sup {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  transition: color 0.2s ease;
}

.afzal-nav-link:hover sup, .afzal-nav-link.active sup {
  color: #94A3B8;
}

/* Afzal Spring Pill CTA Button (Exact Framer Physics: Scales up & circular arrow rotates 45deg) */
.afzal-pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  color: #070E15;
  padding: 6px 20px 6px 7px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
}

.afzal-pill-cta:hover {
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.afzal-pill-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0F1F2E;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease;
}

.afzal-pill-cta:hover .afzal-pill-icon {
  transform: rotate(45deg);
  background: #18334C;
}


/* ==========================================================
   AFZAL GROUP EXACT NAVBAR: ROLLING TEXT & ROLLING ARROW
   ========================================================== */

/* Top Thin Accent Line like Afzal Group */
.afzal-top-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #0F1F2E;
  z-index: 60;
}

/* Afzal Minimal Transparent Header */
.afzal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 48px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .afzal-header {
    padding: 16px 20px;
  }
}

/* Afzal Clean Bold Logo */
.afzal-brand-logo {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.afzal-brand-logo:hover {
  opacity: 0.9;
}

/* Afzal Nav Items with Rolling Text */
.afzal-nav-container {
  display: flex;
  align-items: center;
  gap: 36px;
}

.afzal-nav-item {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 0;
}

/* Rolling Text Container */
.afzal-nav-roller {
  height: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.afzal-nav-roller span {
  display: block;
  height: 20px;
  line-height: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
  white-space: nowrap;
}

/* Rolling Animation on Nav Hover */
.afzal-nav-item:hover .afzal-nav-roller span:nth-child(1) {
  transform: translateY(-100%);
}

.afzal-nav-item:hover .afzal-nav-roller span:nth-child(2) {
  transform: translateY(-100%);
  color: #FFFFFF;
  font-weight: 600;
}

.afzal-nav-item.active .afzal-nav-roller span {
  color: #FFFFFF;
  font-weight: 700;
}

.afzal-nav-item sup {
  font-size: 0.6rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.25s ease, transform 0.25s ease;
  line-height: 1;
}

.afzal-nav-item:hover sup,
.afzal-nav-item.active sup {
  color: #0F1F2E;
  transform: translateY(-1px);
}

/* ==========================================================
   AFZAL GROUP PILL BUTTON (Rolling Arrow + Rolling Text)
   ========================================================== */
.afzal-pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #FFFFFF;
  color: #090909;
  padding: 5px 22px 5px 6px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  overflow: hidden;
}

.afzal-pill-cta:hover {
  transform: scale(1.03) translateY(-1px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Green Circle with 2 Rolling Arrows */
.afzal-pill-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0F1F2E;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.25s ease;
}

.afzal-pill-cta:hover .afzal-pill-circle {
  background: #18334C;
}

/* Arrow 1 & Arrow 2 */
.afzal-pill-circle .arrow-1 {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.75rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.afzal-pill-circle .arrow-2 {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.75rem;
  transform: translate(-120%, 120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

/* Hover Rolling Motion */
.afzal-pill-cta:hover .afzal-pill-circle .arrow-1 {
  transform: translate(120%, -120%);
  opacity: 0;
}

.afzal-pill-cta:hover .afzal-pill-circle .arrow-2 {
  transform: translate(0, 0);
  opacity: 1;
}

/* Button Rolling Text */
.afzal-btn-roller {
  height: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.afzal-btn-roller span {
  display: block;
  height: 20px;
  line-height: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #090909;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.afzal-pill-cta:hover .afzal-btn-roller span:nth-child(1) {
  transform: translateY(-100%);
}

.afzal-pill-cta:hover .afzal-btn-roller span:nth-child(2) {
  transform: translateY(-100%);
}


/* ==========================================================
   AFZAL GROUP EXACT EXPANDING PILL BUTTON ANIMATION
   (Circle expands to full width + horizontal arrow roll + vertical text roll)
   ========================================================== */

/* Top Thin Accent Line using Brand Navy */
.afzal-top-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 60;
}

.afzal-pill-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #FFFFFF;
  padding: 5px 22px 5px 5px;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  overflow: hidden;
  height: 48px;
  box-sizing: border-box;
}

.afzal-pill-cta:hover {
  transform: scale(1.03) translateY(-1px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Expanding Pill Background: starts as 38px circle on the left, expands to fill button on hover */
.afzal-pill-bg {
  position: absolute;
  top: 5px;
  left: 5px;
  height: 38px;
  width: 38px;
  border-radius: 9999px;
  background: #0F1F2E; /* User Brand Color */
  transition: width 0.38s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
  z-index: 1;
}

.afzal-pill-cta:hover .afzal-pill-bg {
  width: calc(100% - 10px);
  background: #18334C;
}

/* Arrow Container (Sitting above the expanding background) */
.afzal-pill-arrow-box {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  overflow: hidden;
  flex-shrink: 0;
}

.afzal-pill-arrow-track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 18px;
  height: 18px;
  overflow: hidden;
  position: relative;
}

.afzal-pill-arrow-track .arrow-item {
  flex: none;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.afzal-pill-cta:hover .afzal-pill-arrow-track .arrow-item {
  transform: translateX(-18px);
}

/* Button Text Container (Sitting above the expanding background) */
.afzal-pill-text-box {
  position: relative;
  z-index: 2;
  height: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.afzal-pill-text-box span {
  display: block;
  height: 20px;
  line-height: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.afzal-pill-text-box span:nth-child(1) {
  color: #090909;
}

.afzal-pill-text-box span:nth-child(2) {
  color: #FFFFFF;
}

.afzal-pill-cta:hover .afzal-pill-text-box span {
  transform: translateY(-20px);
  color: #FFFFFF;
}


/* ==========================================================
   AFZAL GROUP EXACT NAVBAR & HIGH-CONTRAST CONTROLS
   ========================================================== */

/* Top Thin Ambient Accent Line */
.afzal-top-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 60;
}

/* Afzal Minimal Transparent Header */
.afzal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px 52px;
  background: linear-gradient(180deg, rgba(7, 14, 21, 0.8) 0%, rgba(7, 14, 21, 0.3) 60%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .afzal-header {
    padding: 16px 20px;
  }
}

/* Afzal Clean Bold Logo */
.afzal-brand-logo {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.afzal-brand-logo:hover {
  opacity: 0.95;
}

/* Nav Container */
.afzal-nav-container {
  display: flex;
  align-items: center;
  gap: 36px;
}

/* Afzal Nav Items */
.afzal-nav-item {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 0;
}

/* Rolling Text Container */
.afzal-nav-roller {
  height: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.afzal-nav-roller span {
  display: block;
  height: 20px;
  line-height: 20px;
  font-size: 0.925rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62); /* Inactive items are muted elegant gray */
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
  white-space: nowrap;
}

.afzal-nav-item sup {
  font-size: 0.625rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: rgba(255, 255, 255, 0.45); /* Inactive superscript numbers are muted gray */
  transition: color 0.25s ease, transform 0.25s ease;
  line-height: 1;
}

/* Hover State on Inactive Items: smoothly lights up to pure white */
.afzal-nav-item:hover .afzal-nav-roller span:nth-child(1) {
  transform: translateY(-100%);
}

.afzal-nav-item:hover .afzal-nav-roller span:nth-child(2) {
  transform: translateY(-100%);
  color: #FFFFFF;
}

.afzal-nav-item:hover sup {
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* ACTIVE STATE: PURE WHITE Bosh sahifa 01 (ajralib turadi!) */
.afzal-nav-item.active .afzal-nav-roller span {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

.afzal-nav-item.active sup {
  color: #FFFFFF !important;
  opacity: 1 !important;
  font-weight: 700 !important;
}

/* Underline Indicator for Active & Hover */
.afzal-nav-item-underline-disabled {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #FFFFFF;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.afzal-nav-item-active-disabled {
  width: 100%;
}

.afzal-nav-item-hover-disabled {
  width: 100%;
}

/* ==========================================================
   AFZAL GROUP POLISHED EXPANDING PILL BUTTON
   ========================================================== */
.afzal-pill-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  padding: 4px 22px 4px 4px;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  overflow: hidden;
  height: 46px;
  box-sizing: border-box;
}

.afzal-pill-cta:hover {
  transform: scale(1.03) translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

/* Expanding Background: starts as 38px circle on the left, expands to fill button */
.afzal-pill-bg {
  position: absolute;
  top: 4px;
  left: 4px;
  height: 38px;
  width: 38px;
  border-radius: 9999px;
  background: #0F1F2E; /* User Brand Color */
  transition: width 0.38s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
  z-index: 1;
}

.afzal-pill-cta:hover .afzal-pill-bg {
  width: calc(100% - 8px);
  background: #18334C;
}

/* Arrow Circle Container */
.afzal-pill-arrow-box {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  overflow: hidden;
  flex-shrink: 0;
}

.afzal-pill-arrow-track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 18px;
  height: 18px;
  overflow: hidden;
  position: relative;
}

.afzal-pill-arrow-track .arrow-item {
  flex: none;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.afzal-pill-cta:hover .afzal-pill-arrow-track .arrow-item {
  transform: translateX(-18px);
}

/* Button Text Container */
.afzal-pill-text-box {
  position: relative;
  z-index: 2;
  height: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-left: 10px;
}

.afzal-pill-text-box span {
  display: block;
  height: 20px;
  line-height: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.afzal-pill-text-box span:nth-child(1) {
  color: #0F1F2E;
}

.afzal-pill-text-box span:nth-child(2) {
  color: #FFFFFF;
}

.afzal-pill-cta:hover .afzal-pill-text-box span {
  transform: translateY(-20px);
  color: #FFFFFF;
}


/* ==========================================================
   AFZAL GROUP CURTAIN / SHEET TRANSITION TO NEXT SECTION
   ========================================================== */
.afzal-sheet-section {
  position: relative;
  z-index: 20;
  border-radius: 0 !important;
  margin-top: 0 !important;
  background-color: #FFFFFF;
  box-shadow: none !important;
  border-top: 1px solid rgba(15, 31, 46, 0.08);
  border-bottom: 1px solid rgba(15, 31, 46, 0.08);
  overflow: hidden;
}

@media (max-width: 768px) {
  .afzal-sheet-section {
  position: relative;
  z-index: 20;
  border-radius: 0 !important;
  margin-top: 0 !important;
  background-color: #FFFFFF;
  box-shadow: none !important;
  border-top: 1px solid rgba(15, 31, 46, 0.08);
  border-bottom: 1px solid rgba(15, 31, 46, 0.08);
  overflow: hidden;
}
}

/* Afzal Pill Button: Perfectly Centered Text */
.afzal-pill-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  background: #FFFFFF;
  padding: 4px 18px 4px 4px;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  overflow: hidden;
  height: 46px;
  min-width: 150px;
  box-sizing: border-box;
}

.afzal-pill-cta:hover {
  transform: scale(1.03) translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.afzal-pill-text-box {
  position: relative;
  z-index: 2;
  flex: 1;
  height: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8px;
}

.afzal-pill-text-box span {
  display: block;
  width: 100%;
  text-align: center;
  height: 20px;
  line-height: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.afzal-pill-text-box span:nth-child(1) {
  color: #0F1F2E;
}

.afzal-pill-text-box span:nth-child(2) {
  color: #FFFFFF;
}

.afzal-pill-cta:hover .afzal-pill-text-box span {
  transform: translateY(-20px);
  color: #FFFFFF;
}


/* ==========================================================
   FINAL POLISHED AFZAL GROUP CONTROLS (Zero Underline, Perfect Button, Seamless Hero)
   ========================================================== */

/* Hero Container: 100vh full-screen, clean boundary */
.afzal-hero-container {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 84px;
  padding-top: 140px;
  background-color: #070E15;
  overflow: hidden;
  color: #FFFFFF;
}

/* Second Section (Stats & Content): Sits cleanly below hero, NO peeking onto first screen! */
.afzal-sheet-section {
  position: relative;
  z-index: 20;
  border-radius: 0 !important;
  margin-top: 0 !important;
  background-color: #FFFFFF;
  box-shadow: none !important;
  border-top: 1px solid rgba(15, 31, 46, 0.08);
  border-bottom: 1px solid rgba(15, 31, 46, 0.08);
  overflow: hidden;
}

@media (max-width: 768px) {
  .afzal-sheet-section {
  position: relative;
  z-index: 20;
  border-radius: 0 !important;
  margin-top: 0 !important;
  background-color: #FFFFFF;
  box-shadow: none !important;
  border-top: 1px solid rgba(15, 31, 46, 0.08);
  border-bottom: 1px solid rgba(15, 31, 46, 0.08);
  overflow: hidden;
}
}

/* Nav Item: NO UNDERLINES AT ALL */
.afzal-nav-item::after {
  display: none !important;
}

.afzal-nav-item.active::after,
.afzal-nav-item:hover::after {
  display: none !important;
  width: 0 !important;
}



/* ==========================================================
   PERFECT AFZAL GROUP EXPANDING PILL BUTTON ENGINE (Universal)
   ========================================================== */
.afzal-pill-cta {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  background: #FFFFFF !important;
  padding: 4px 22px 4px 4px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(15, 31, 46, 0.1) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.25s ease !important;
  overflow: hidden !important;
  height: 48px !important;
  min-width: 154px !important;
  box-sizing: border-box !important;
  outline: none !important;
  font-family: inherit !important;
  -webkit-appearance: none !important;
  user-select: none !important;
}

.afzal-pill-cta:hover {
  transform: scale(1.02) translateY(-1px) !important;
  box-shadow: 0 10px 28px rgba(15, 31, 46, 0.25) !important;
  border-color: #0F1F2E !important;
}

/* Full-width pills: rely on Tailwind's w-full / sm:w-auto so responsive widths keep working */
.afzal-pill-cta.w-full {
  justify-content: flex-start !important;
}

/* Expanding Background: starts as 38px circle on left, expands across full width on hover */
.afzal-pill-fill {
  position: absolute !important;
  top: 4px !important;
  left: 4px !important;
  height: calc(100% - 8px) !important;
  width: 38px !important;
  border-radius: 9999px !important;
  background: #0F1F2E !important; /* Brand Navy */
  transition: width 0.38s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.afzal-pill-cta:hover .afzal-pill-fill {
  width: calc(100% - 8px) !important;
  background: #18334C !important;
}

/* Arrow Circle Container */
.afzal-pill-circle {
  position: relative !important;
  z-index: 2 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #FFFFFF !important;
  font-size: 0.85rem !important;
  flex-shrink: 0 !important;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  pointer-events: none !important;
}

.afzal-pill-circle i {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.afzal-pill-cta:hover .afzal-pill-circle i {
  transform: rotate(45deg) !important;
}

/* Centered Button Label */
.afzal-pill-label {
  position: relative !important;
  z-index: 2 !important;
  flex: 1 !important;
  text-align: center !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #0F1F2E !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  line-height: normal !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none !important;
}

.afzal-pill-cta:hover .afzal-pill-label {
  color: #FFFFFF !important;
  transform: translateX(2px) !important;
}

/* ==========================================================
   EXACT 1-TO-1 FRAMER HOUSEMOOD ARCHITECTURAL PRELOADER
   ========================================================== */
.hm-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  overflow: hidden;
  pointer-events: all;
  background: transparent;
  user-select: none;
}

/* 3 Panels / Columns (Housemood Whiteblocks) */
.hm-blocks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  z-index: 1;
}

.hm-col {
  flex: 1 0 0px;
  height: 100%;
  position: relative;
  overflow: visible;
}

.hm-back-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
  transition: height 0.85s cubic-bezier(0.85, 0, 0.15, 1), top 0.85s cubic-bezier(0.85, 0, 0.15, 1), bottom 0.85s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.5s ease;
  will-change: height, top, bottom, opacity;
}

/* Slide 4 (Collapse state): The 3 panels collapse into 1px horizontal laser lines */
.hm-preloader.hm-state-collapse .hm-back-1 {
  height: 1px;
  top: -1px;
  bottom: auto;
  opacity: 0.6;
}

.hm-preloader.hm-state-collapse .hm-back-2 {
  height: 1px;
  top: calc(50% - 0.5px);
  bottom: auto;
  background-color: #CBD5E1;
  opacity: 1;
}

.hm-preloader.hm-state-collapse .hm-back-3 {
  height: 1px;
  bottom: -1px;
  top: auto;
  opacity: 0.6;
}

/* Slide 5 (Shrink state): Center 1px line shrinks in width to 61px then dissolves */
.hm-preloader.hm-state-shrink .hm-back-2 {
  width: 61px !important;
  left: calc(50% - 30.5px) !important;
  opacity: 0 !important;
  transition: width 0.65s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.35s ease 0.25s !important;
}

/* Symmetrical Architectural Laser Guidelines */
.hm-decor-top,
.hm-decor-bottom {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 23px;
  height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: height 1.1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  will-change: height, opacity;
}

.hm-decor-top {
  top: 0;
  justify-content: flex-start;
}

.hm-decor-bottom {
  bottom: 0;
  justify-content: flex-end;
}

/* Both guidelines shoot simultaneously and stop symmetrically 24px from the center box */
.hm-preloader.hm-state-shoot .hm-decor-top,
.hm-preloader.hm-state-shoot .hm-decor-bottom {
  height: calc(50vh - 65px);
  opacity: 1;
}

.hm-line {
  width: 1px;
  background-color: #CBD5E1;
  flex: 1 0 0;
  margin: 0 auto;
}

.hm-arrow-wrap {
  width: 23px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hm-decor-top .hm-arrow-svg {
  transform: rotate(90deg);
}

.hm-decor-bottom .hm-arrow-svg {
  transform: rotate(-90deg);
}

/* Center Stage (Logo & 3-Part Metadata line) */
.hm-center-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 340px;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hm-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hm-brand-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #0F1F2E;
  text-transform: uppercase;
  white-space: nowrap;
}

.hm-divider-hairline {
  width: 310px;
  height: 1px;
  background-color: rgba(15, 31, 46, 0.08);
  margin-top: 14px;
  margin-bottom: 12px;
}

/* 3-Part metadata: mathematically symmetrical grid with dead-center plus */
.hm-info-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 310px;
  margin: 0 auto;
}

.hm-info-left {
  text-align: right;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #64748B;
  text-transform: uppercase;
  white-space: nowrap;
}

.hm-info-plus {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: #94A3B8;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
}

.hm-info-right {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #64748B;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Fade out center stage & decor in collapse */
.hm-preloader.hm-state-collapse .hm-center-stage {
  opacity: 0;
  transform: translate(-50%, -58%) scale(0.98);
}

.hm-preloader.hm-state-collapse .hm-decor-top,
.hm-preloader.hm-state-collapse .hm-decor-bottom {
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Completely remove from DOM when finished */
.hm-preloader.hm-finished {
  display: none !important;
  pointer-events: none !important;
}

/* Coordinated Navbar Entrance */
body.preloading .afzal-header {
  transform: translateY(-120%) !important;
  opacity: 0 !important;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease !important;
}

body:not(.preloading) .afzal-header {
  transform: translateY(0) !important;
  opacity: 1 !important;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease !important;
}




/* ========================================================
   HOUSEMOOD & AFZAL GROUP INSPIRED "BIZ HAQIMIZDA" STYLES
   ======================================================== */

.hm-about-section {
  position: relative;
  background-color: #F8F9FA;
  overflow: hidden;
}

/* Subtle architectural grid backdrop */
.hm-about-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(15, 31, 46, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 31, 46, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 80%);
}

/* Tab Navigation Container (Housemood Pill Group) */
.hm-about-tab-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: #FFFFFF;
  border: 1px solid rgba(15, 31, 46, 0.08);
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(15, 31, 46, 0.04);
}

.hm-about-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748B;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.hm-about-tab:hover {
  color: #0F1F2E;
  background: rgba(15, 31, 46, 0.04);
}

.hm-about-tab.active {
  color: #FFFFFF;
  background: #0F1F2E;
  box-shadow: 0 4px 14px rgba(15, 31, 46, 0.18);
}

/* Tab Panes */
.hm-about-pane {
  display: none;
  animation: hmPaneFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hm-about-pane.active {
  display: block;
}

@keyframes hmPaneFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Architectural Standard Card (Housemood / Afzal Group Blueprint) */
.hm-standard-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(15, 31, 46, 0.08);
  border-radius: 20px;
  padding: 32px 28px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(15, 31, 46, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hm-standard-card:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 31, 46, 0.16);
  box-shadow: 0 24px 48px -12px rgba(15, 31, 46, 0.09), 0 4px 16px rgba(15, 31, 46, 0.04);
}

/* Giant Typographic Number Watermark */
.hm-card-watermark {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(15, 31, 46, 0.04);
  font-family: monospace;
  pointer-events: none;
  transition: color 0.35s ease, transform 0.35s ease;
  user-select: none;
}

.hm-standard-card:hover .hm-card-watermark {
  color: rgba(15, 31, 46, 0.09);
  transform: scale(1.05);
}

/* Tag Pill */
.hm-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0F1F2E;
  background: rgba(15, 31, 46, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Timeline Cards */
.hm-timeline-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(15, 31, 46, 0.08);
  border-radius: 18px;
  padding: 28px 24px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hm-timeline-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 31, 46, 0.16);
  box-shadow: 0 16px 36px -8px rgba(15, 31, 46, 0.08);
}

.hm-timeline-year {
  font-size: 2.2rem;
  font-weight: 900;
  color: #0F1F2E;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

/* Quote Strip */
.hm-quote-box {
  background: #0F1F2E;
  color: #FFFFFF;
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(15, 31, 46, 0.3);
}

.hm-quote-mark {
  font-size: 6rem;
  font-family: Georgia, serif;
  line-height: 0.7;
  color: rgba(255, 255, 255, 0.12);
  position: absolute;
  top: 28px;
  left: 28px;
  pointer-events: none;
  user-select: none;
}


/* ==========================================================
   BENTO GRID ARCHITECTURE (Nexa & Framer Luxury Standards)
   ========================================================== */
.bento-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(15, 31, 46, 0.08);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 31, 46, 0.02);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 31, 46, 0.16);
  box-shadow: 0 20px 48px -12px rgba(15, 31, 46, 0.08), 0 4px 16px rgba(15, 31, 46, 0.03);
}

.bento-watermark {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(15, 31, 46, 0.03);
  font-family: monospace;
  pointer-events: none;
  user-select: none;
  transition: color 0.35s ease, transform 0.35s ease;
}

.bento-card:hover .bento-watermark {
  color: rgba(15, 31, 46, 0.07);
  transform: scale(1.04);
}

.bento-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0F1F2E;
  background: rgba(15, 31, 46, 0.05);
  padding: 4px 12px;
  border-radius: 9999px;
}

.bento-pill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #F8F9FA;
  border: 1px solid rgba(15, 31, 46, 0.06);
  transition: all 0.25s ease;
}

.bento-pill-item:hover {
  background: #FFFFFF;
  border-color: rgba(15, 31, 46, 0.15);
  box-shadow: 0 4px 12px rgba(15, 31, 46, 0.05);
  transform: translateX(2px);
}

.bento-timeline-strip {
  background: #FFFFFF;
  border: 1px solid rgba(15, 31, 46, 0.08);
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(15, 31, 46, 0.02);
}

.bento-timeline-item {
  padding: 20px;
  border-radius: 16px;
  background: #F8F9FA;
  border: 1px solid rgba(15, 31, 46, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-timeline-item:hover {
  background: #FFFFFF;
  border-color: rgba(15, 31, 46, 0.15);
  box-shadow: 0 12px 28px -8px rgba(15, 31, 46, 0.08);
  transform: translateY(-3px);
}

.bento-timeline-item.active {
  background: #0F1F2E;
  border-color: #0F1F2E;
  box-shadow: 0 16px 36px -8px rgba(15, 31, 46, 0.25);
}

.bento-year {
  font-size: 2.2rem;
  font-weight: 900;
  color: #0F1F2E;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}


/* ==========================================================
   QR SCANNER VIEWFINDER & LASER ANIMATIONS
   ========================================================== */
.scan-laser-line {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #0F1F2E, #94A3B8, #0F1F2E, transparent);
  box-shadow: 0 0 14px 2px rgba(16, 185, 129, 0.8), 0 0 4px #94A3B8;
  animation: scanLaserAnim 2s ease-in-out infinite alternate;
  z-index: 25;
  pointer-events: none;
}

@keyframes scanLaserAnim {
  0% { top: 12%; opacity: 0.4; }
  50% { opacity: 1; }
  100% { top: 88%; opacity: 0.4; }
}

.viewfinder-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: #FFFFFF;
  border-style: solid;
  pointer-events: none;
  z-index: 30;
}

.viewfinder-corner.top-left {
  top: 14px;
  left: 14px;
  border-width: 3.5px 0 0 3.5px;
  border-top-left-radius: 8px;
}

.viewfinder-corner.top-right {
  top: 14px;
  right: 14px;
  border-width: 3.5px 3.5px 0 0;
  border-top-right-radius: 8px;
}

.viewfinder-corner.bottom-left {
  bottom: 14px;
  left: 14px;
  border-width: 0 0 3.5px 3.5px;
  border-bottom-left-radius: 8px;
}

.viewfinder-corner.bottom-right {
  bottom: 14px;
  right: 14px;
  border-width: 0 3.5px 3.5px 0;
  border-bottom-right-radius: 8px;
}

#qrReader,
#qrVideoReader {
  border: none !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#qrReader video,
#qrVideoReader video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 14px;
}

#qrReader img {
  display: none !important;
}

/* ========================================================
   OAKWOOD FRAMER-STYLE EXACT SECTION 5 STICKY SEQUENCE
   ======================================================== */
.oakwood-scroll-container {
  position: relative;
  height: 280vh;
  background-color: #FFFFFF;
}

.oakwood-sticky-viewport {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #FFFFFF;
  z-index: 20;
}

.oakwood-center-frame {
  width: 310px;
  height: 380px;
  border-radius: 1.75rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 70px -15px rgba(15, 31, 46, 0.22);
  border: 1px solid rgba(15, 31, 46, 0.08);
  background: #0F1F2E;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

@media (min-width: 640px) {
  .oakwood-center-frame {
    width: 420px;
    height: 480px;
    border-radius: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .oakwood-center-frame {
    width: 480px;
    height: 520px;
    border-radius: 2.5rem;
  }
}

.oakwood-center-frame:hover {
  transform: scale(1.02);
  box-shadow: 0 35px 85px -15px rgba(15, 31, 46, 0.28);
}

.oakwood-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.oakwood-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #CBD5E1;
  transition: all 0.3s ease;
}

.oakwood-dot.active {
  width: 24px;
  background: #0F1F2E;
}

/* ============================================
   PLEASANT PUMPKIN SIGNATURE FRAMER DESIGN
   1. Testimonials (TESTIMONIAL Dual Marquee Ticker)
   2. Contact ("Biz bilan Bog'laning!")
   3. Footer (Luxury Dual Cards with Contact Pills)
   ============================================ */

.framer-dark-pattern-section {
  position: relative;
  background-color: var(--brand-navy);
  color: #FFFFFF;
  overflow: hidden;
}

/* Fading Pattern Layer - ONLY at the top and softly dissolves into pure black */
.framer-pattern-fade-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 250px;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='40' viewBox='0 0 24 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40c5.523 0 10-4.477 10-10V0C4.477 0 0 4.477 0 10v30zm22 0c-5.523 0-10-4.477-10-10V0c5.523 0 10 4.477 10 10v30z' fill='%231E293B' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 110px 185px;
  opacity: 0.15;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 80px, rgba(0, 0, 0, 0) 180px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 80px, rgba(0, 0, 0, 0) 180px);
  pointer-events: none;
  z-index: 0;
}

/* Subtle Dynamic Spotlight Hover that follows cursor */
.framer-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 380px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.04), transparent 75%);
  opacity: 0.85;
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* Testimonial Giant Background Watermark (Clean Luxury Monochromatic Gradient) */
.framer-testimonial-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  font-weight: 900;
  font-size: clamp(6.5rem, 22vw, 20rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* Ambient Subtle Executive Glow Aura (Monochromatic) */
.framer-ambient-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: min(850px, 90vw);
  height: 420px;
  background: radial-gradient(ellipse 65% 50% at 50% 35%, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 45%, transparent 75%);
  filter: blur(85px);
  pointer-events: none;
  z-index: 0;
}

/* Testimonial Columns Marquee Viewport with Top & Bottom Fade Masks */
.framer-marquee-viewport {
  position: relative;
  height: 650px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}

.framer-ticker-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.framer-ticker-track-up {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: framerTickerUp 36s linear infinite;
}

.framer-ticker-track-down {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: framerTickerDown 40s linear infinite;
}

.framer-marquee-viewport:hover .framer-ticker-track-up,
.framer-marquee-viewport:hover .framer-ticker-track-down {
  animation-play-state: paused;
}

@keyframes framerTickerUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes framerTickerDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

/* Framer Review Card - Frosted Slate Glass Aesthetic (Zero Artificial Blue) */
.framer-review-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 26px 28px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(2, 6, 23, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.framer-review-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 45px -15px rgba(2, 6, 23, 0.7);
  transform: translateY(-4px);
}

/* Contact / Let's Talk Glass Box */
.framer-glass-box {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.6);
}

/* Footer Luxury Box */
.framer-footer-box {
  background: rgba(14, 29, 44, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Contact Card in Footer (Clean Frosted Glass Capsule, Zero Artificial Blue) */
.framer-contact-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  width: 100%;
}

.framer-contact-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateX(4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.framer-contact-pill {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9999px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  width: 100%;
}

.framer-contact-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateX(4px);
}

/* Social icon button */
.framer-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.25s ease;
}

.framer-social-btn:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #0F1F2E;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.2);
}




/* ==========================================================
   PROFESSIONAL EXECUTIVE FOOTER
   ========================================================== */
.site-footer {
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(15, 31, 46, 0.16) 0%, transparent 70%),
    linear-gradient(180deg, #0F1F2E 0%, #0B1520 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-heading {
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  position: relative;
  display: inline-block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s var(--afzal-ease);
}

.footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s var(--afzal-ease);
}

.footer-social:hover {
  background: #0F1F2E;
  border-color: #0F1F2E;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
}

.footer-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #94A3B8;
  background: rgba(15, 31, 46, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: all 0.25s ease;
}

.footer-contact .text-sm {
  padding-top: 7px;
}

.footer-contact:hover .footer-contact-icon {
  background: #0F1F2E;
  color: #FFFFFF;
}

/* ==========================================================
   MOBILE REFINEMENTS (all sections)
   ========================================================== */
@media (max-width: 639px) {
  .afzal-section-title {
    font-size: 1.85rem;
    line-height: 1.15;
  }

  .afzal-section-desc {
    font-size: 0.9rem;
    margin-top: 0.85rem;
  }

  .afzal-badge {
    font-size: 0.72rem;
    padding: 5px 12px;
  }

  /* Pills fill the width nicely on phones */
  .afzal-pill-cta {
    min-width: 0 !important;
  }

  .framer-marquee-viewport {
    height: 520px;
  }

  .framer-review-card {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .framer-testimonial-watermark {
    font-size: 5.5rem;
  }

  #enroll form .afzal-pill-cta,
  #searchCertBtn {
    width: 100% !important;
  }
}
