/* ============================================================
   Uzair Hassan — Global Stylesheet
   Shared across all pages.
   ============================================================

   TABLE OF CONTENTS
   -----------------
   01. CSS Variables / Reset
   02. Base / Typography
   03. Utility Classes
   04. Buttons
   05. Header & Navigation
   06. Hero (Home)
   07. Inner Page Hero (subpages)
   08. Marquee
   09. Services Section
   10. Portfolio / Case Studies
   11. Process Section
   12. Why Us Section
   13. Testimonials
   14. Blog / Insights
   15. FAQ
   16. Contact Form
   17. Footer
   18. Chat Widget
   19. Responsive
   ============================================================ */


/* ============================================================
   01. CSS VARIABLES / RESET
   ============================================================ */
:root {
  --accent: #FCA311;
  --accent-dim: rgba(252, 163, 17, .18);
  --accent-hover: #e8930a;
  --bg: #050505;
  --bg-2: #0d0d0d;
  --bg-3: #111111;
  --bg-light: #f6f6f4;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, .55);
  --border: rgba(255, 255, 255, .08);
  --radius: 14px;
  --radius-lg: 24px;
  --transition: .35s cubic-bezier(.25, .8, .25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}


/* ============================================================
   02. BASE / TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4,
h5 {
  line-height: 1.15;
  letter-spacing: -.02em;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}


/* ============================================================
   03. UTILITY CLASSES
   ============================================================ */
.accent {
  color: var(--accent);
}

.accent-dark {
  color: #FCA311;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .6s .2s ease;
}

.section-label.line-grow::before {
  width: 28px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 64px;
}

/* Light-section overrides */
.dark-title {
  color: #111;
}

.dark-sub {
  color: #666;
}

/* Scroll animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .75s cubic-bezier(.22, 1, .36, 1),
    transform .75s cubic-bezier(.22, 1, .36, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity .8s ease, transform .8s ease;
}

.slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity .8s ease, transform .8s ease;
}

.slide-left.visible,
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 {
  transition-delay: .15s;
}

.delay-2 {
  transition-delay: .30s;
}

.delay-3 {
  transition-delay: .45s;
}

/* Tag pills */
.tag {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(252, 163, 17, .25);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  display: inline-flex;
}


/* ============================================================
   04. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  outline: none;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: var(--transition);
  overflow: hidden;
  /* for ripple */
  will-change: transform;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(252, 163, 17, .35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .13);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: .88rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}


/* ============================================================
   05. HEADER & NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  padding: 0 5vw;
  height: 72px;
  transition: background var(--transition),
    backdrop-filter var(--transition),
    box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(5, 5, 5, .88);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.logo svg {
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}

.logo:hover svg {
  transform: rotate(360deg) scale(1.1);
}

.logo span em {
  color: var(--accent);
  font-style: normal;
}

/* Full-screen overlay nav */
.fullnav {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 950;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-110%);
  transition: opacity .4s ease, transform .4s ease;
}

.fullnav.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.fullnav ul {
  text-align: center;
}

.fullnav ul li {
  margin: 8px 0;
}

.fullnav .nav-link {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  transition: color .2s;
  position: relative;
}

.fullnav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .3s ease;
}

.fullnav .nav-link:hover {
  color: var(--accent);
}

.fullnav .nav-link:hover::after {
  width: 100%;
}

.fullnav .nav-link[aria-current="page"] {
  color: var(--accent);
}

.fullnav-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 1.5rem;
  transition: color .2s;
}

.fullnav-close:hover {
  color: var(--accent);
}

.fullnav-footer {
  position: absolute;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: .9rem;
}

.fullnav-footer .socials {
  display: flex;
  gap: 16px;
}

.fullnav-footer .socials a {
  transition: color .2s;
}

.fullnav-footer .socials a:hover {
  color: var(--accent);
}


/* ============================================================
   06. HERO (HOME ONLY)
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 5vw 80px;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(252, 163, 17, .16) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Service tabs */
.hero-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.htab {
  background: rgba(255, 255, 255, .06);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  transition: var(--transition);
}

.htab:hover,
.htab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.hero-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}

.stat:first-child {
  padding-left: 0;
}

.stat strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: inline-block;
}

.stat strong.pop {
  animation: popScale .35s cubic-bezier(.34, 1.56, .64, 1);
}

.stat span {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

@keyframes popScale {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1);
  }
}

/* Hero image side */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(252, 163, 17, .25) 0%, transparent 65%);
  top: 15%;
  left: 15%;
  filter: blur(30px);
  animation: pulse 4s ease-in-out infinite;
}

.hero-img {
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: .7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* Floating tech badges */
.floating-badge {
  position: absolute;
  background: rgba(5, 5, 5, .9);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  z-index: 10;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.badge-1 {
  top: 12%;
  left: -10%;
  animation-delay: -1s;
}

.badge-2 {
  top: 55%;
  right: -8%;
  animation-delay: -2.5s;
}

.badge-3 {
  bottom: 18%;
  left: 0%;
  animation-delay: -4s;
}

.badge-4 {
  bottom: 30%;
  right: 2%;
  animation-delay: -0.5s;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 2;
}

.hero-scroll-indicator::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: scrollDot 2s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollDot {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(8px);
    opacity: .4;
  }
}

@keyframes scrollLine {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }

  50% {
    transform: scaleY(.5);
    opacity: .4;
  }
}


/* ============================================================
   07. INNER PAGE HERO (subpages)
   ============================================================ */
.page-hero {
  padding: 160px 0 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(252, 163, 17, .1) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.page-hero .page-hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, black 10%, transparent 70%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.page-breadcrumb a {
  transition: color .2s;
}

.page-breadcrumb a:hover {
  color: var(--accent);
}

.page-breadcrumb .sep {
  color: var(--border);
}

.page-breadcrumb .current {
  color: var(--accent);
}


/* ============================================================
   08. MARQUEE (shared — used on home & optionally subpages)
   ============================================================ */
.logos-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
}

.logos-label {
  text-align: center;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.marquee-wrapper {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.logo-item {
  padding: 0 40px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .2);
  border-right: 1px solid var(--border);
  transition: color .3s;
  cursor: default;
  white-space: nowrap;
}

.logo-item:hover {
  color: rgba(255, 255, 255, .7);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


/* ============================================================
   09. SERVICES SECTION
   ============================================================ */
.services-section {
  padding: 120px 0;
  background: var(--bg);
}

.services-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 60px;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  border-radius: 2px;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.service-item:hover::before,
.service-item.active::before {
  transform: scaleY(1);
}

.service-item:hover,
.service-item.active {
  background: rgba(252, 163, 17, .06);
  border-color: rgba(252, 163, 17, .3);
  padding-left: 30px;
}

.service-item.active .service-num,
.service-item.active .service-arrow {
  color: var(--accent);
}

.service-num {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--text-muted);
  min-width: 28px;
  transition: color .25s;
}

.service-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.service-info p {
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.service-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.service-item:hover .service-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* Tech panel */
.services-tech {
  position: sticky;
  top: 100px;
}

.tech-panel {
  display: none;
}

.tech-panel.active {
  display: block;
  animation: fadePanel .35s ease;
}

@keyframes fadePanel {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tech-badge {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  font-size: .88rem;
  font-weight: 700;
  cursor: default;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tech-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-3px);
}


/* ============================================================
   10. PORTFOLIO / CASE STUDIES
   ============================================================ */
.portfolio-section {
  padding: 120px 0 0;
  background: var(--bg);
}

.portfolio-section .container {
  margin-bottom: 60px;
}

.project-block {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.project-block-alt {
  background: var(--bg-2);
}

.project-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.project-inner-rev .project-content {
  order: 2;
}

.project-inner-rev .project-image {
  order: 1;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.project-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.project-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.project-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.project-results li {
  font-size: .95rem;
  font-weight: 600;
}

.project-image {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.project-image img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: transform .8s cubic-bezier(.25, .8, .25, 1), opacity .6s ease;
}

.project-image.visible img {
  opacity: 1;
}

.project-image img:hover {
  transform: scale(1.03);
}


/* ============================================================
   11. PROCESS SECTION
   ============================================================ */
.process-section {
  padding: 120px 0;
  background: var(--bg-light);
}

.process-section .section-label {
  color: #FCA311;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.process-step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
  transition: box-shadow .3s, transform .3s;
}

.process-step:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
  transform: translateY(-4px);
}

.process-step::after {
  content: '';
  position: absolute;
  top: 36px;
  right: -17px;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, #FCA31140, transparent);
  pointer-events: none;
}

.process-step:nth-child(3n)::after {
  display: none;
}

.step-num {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.process-step h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 10px;
}

.process-step p {
  font-size: .9rem;
  color: #666;
  line-height: 1.6;
}


/* ============================================================
   12. WHY US
   ============================================================ */
.why-section {
  padding: 120px 0;
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.why-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  isolation: isolate;
}

.why-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--glow-angle, 0deg), transparent 0%, var(--accent) 20%, transparent 40%);
  opacity: 0;
  z-index: -1;
  transition: opacity .4s;
}

.why-card:hover::before {
  opacity: 1;
  animation: spin-border 3s linear infinite;
}

.why-card:hover {
  border-color: transparent;
  background: rgba(252, 163, 17, .04);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}

@keyframes spin-border {
  to {
    --glow-angle: 360deg;
  }
}

@property --glow-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.why-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.why-card:hover .why-icon {
  animation: iconBounce .5s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes iconBounce {
  0% {
    transform: scale(1) rotate(0);
  }

  40% {
    transform: scale(1.4) rotate(-8deg);
  }

  70% {
    transform: scale(.9) rotate(4deg);
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

.why-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.why-card p {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ============================================================
   13. TESTIMONIALS
   ============================================================ */
.testimonials-section {
  padding: 120px 0;
  background: var(--bg-2);
  overflow: hidden;
}

.testimonials-track-wrapper {
  overflow: hidden;
  margin: 60px 0 28px;
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(4, 360px);
  gap: 24px;
  width: max-content;
  transition: transform .5s cubic-bezier(.25, .8, .25, 1);
}

.testimonial-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .35s cubic-bezier(.25, .8, .25, 1), border-color .35s, box-shadow .35s;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(252, 163, 17, .3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}

.stars {
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: .05em;
}

.testimonial-card p {
  color: var(--text-muted);
  font-size: .97rem;
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}

.tcard-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}

.tcard-author strong {
  display: block;
  font-weight: 700;
  font-size: .95rem;
}

.tcard-author span {
  font-size: .8rem;
  color: var(--text-muted);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s, width .25s;
}

.dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}


/* ============================================================
   14. BLOG / INSIGHTS
   ============================================================ */
.blog-section {
  padding: 120px 0;
  background: var(--bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}

.blog-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  isolation: isolate;
}

.blog-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--glow-angle, 0deg), transparent 0%, var(--accent) 20%, transparent 40%);
  opacity: 0;
  z-index: -1;
  transition: opacity .4s;
}

.blog-card:hover::before {
  opacity: 1;
  animation: spin-border 3s linear infinite;
}

.blog-card:hover {
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}

.blog-img-wrap {
  overflow: hidden;
  height: 200px;
}

.blog-img-placeholder {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}

.blog-card:hover .blog-img-placeholder {
  transform: scale(1.07);
}

.bi-1 {
  background: linear-gradient(135deg, #1a0a00 0%, #3d2000 50%, #FCA311 100%);
}

.bi-2 {
  background: linear-gradient(135deg, #000d1a 0%, #001f3d 50%, #0064d2 100%);
}

.bi-3 {
  background: linear-gradient(135deg, #0a001a 0%, #1f003d 50%, #7d00d2 100%);
}

.blog-body {
  padding: 28px 24px;
}

.blog-tag {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 14px;
}

.blog-body h4 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
}

.blog-body p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.blog-read-more {
  font-size: .88rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  gap: 4px;
  transition: gap .2s;
}

.blog-read-more:hover {
  gap: 8px;
}


/* ============================================================
   15. FAQ
   ============================================================ */
.faq-section {
  padding: 120px 0;
  background: var(--bg-2);
}

.faq-list {
  max-width: 800px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s;
}

.faq-item.open {
  border-color: var(--accent);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  padding: 24px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color .25s;
}

.faq-item.open .faq-q {
  color: var(--accent);
}

.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .3s;
  font-weight: 300;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.faq-item.open .faq-a {
  max-height: 300px;
}

.faq-a p {
  padding: 0 28px 24px;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
}


/* ============================================================
   16. CONTACT FORM
   ============================================================ */
.contact-section {
  padding: 120px 0;
  background: var(--bg);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.contact-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.contact-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-perks li {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.contact-form-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: .95rem;
  padding: 14px 16px;
  transition: border-color .25s;
  outline: none;
  width: 100%;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group select option {
  background: var(--bg-3);
}


/* ============================================================
   17. FOOTER
   ============================================================ */
.footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding-top: 80px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 800;
  transition: var(--transition);
}

.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h5 {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: .9rem;
  color: var(--text-muted);
  transition: color .25s;
}

.footer-col ul li a:hover {
  color: var(--text);
}

.footer-newsletter {
  margin-top: 24px;
}

.footer-newsletter p {
  font-size: .83rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: .88rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color .25s;
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

.newsletter-form button {
  background: var(--accent);
  border: none;
  border-radius: 0 8px 8px 0;
  color: #000;
  font-weight: 800;
  font-size: 1rem;
  padding: 10px 18px;
  cursor: pointer;
  transition: background .25s;
}

.newsletter-form button:hover {
  background: var(--accent-hover);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: .85rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: .85rem;
  color: var(--text-muted);
  transition: color .25s;
}

.footer-legal a:hover {
  color: var(--text);
}


/* ============================================================
   18. CHAT WIDGET
   ============================================================ */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(252, 163, 17, .4);
  position: relative;
  transition: transform .3s, box-shadow .3s;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(252, 163, 17, .5);
}

.chat-toggle::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: chatPulse 2.5s ease-in-out infinite;
}

@keyframes chatPulse {
  0% {
    transform: scale(.9);
    opacity: .7;
  }

  70% {
    transform: scale(1.5);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.chat-notif {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #e53935;
  border-radius: 50%;
  font-size: .68rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-bubble {
  width: 320px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  display: none;
  flex-direction: column;
}

.chat-bubble.visible {
  display: flex;
  animation: chatSlide .3s ease;
}

@keyframes chatSlide {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
}

.chat-meta {
  flex: 1;
}

.chat-meta strong {
  display: block;
  font-size: .92rem;
}

.chat-meta span {
  font-size: .76rem;
  color: var(--text-muted);
}

.chat-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  transition: color .2s;
}

.chat-close:hover {
  color: var(--text);
}

.chat-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  background: var(--bg-3);
  border-radius: 0 12px 12px 12px;
  padding: 12px 16px;
  font-size: .88rem;
  line-height: 1.5;
  max-width: 85%;
}

.chat-input-row {
  display: flex;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.chat-input-row input {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: .9rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color .25s;
}

.chat-input-row input:focus {
  border-color: var(--accent);
}

.chat-input-row button {
  background: var(--accent);
  border: none;
  border-radius: 0 8px 8px 0;
  color: #000;
  font-weight: 800;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 1rem;
  transition: background .25s;
}

.chat-input-row button:hover {
  background: var(--accent-hover);
}


/* ============================================================
   19. RESPONSIVE
   ============================================================ */

/* ── 1200px: large laptops ── */
@media (max-width: 1200px) {
  .hero-content {
    gap: 40px;
  }

  .hero-img {
    max-width: 420px;
  }

  .floating-badge {
    font-size: .75rem;
    padding: 6px 12px;
  }
}

/* ── 1024px: tablets landscape ── */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-sub {
    max-width: 520px;
  }

  .hero-tabs {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }

  .services-layout {
    grid-template-columns: 1fr;
  }

  .services-tech {
    position: static;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-inner,
  .project-inner-rev {
    grid-template-columns: 1fr;
  }

  .project-inner-rev .project-content {
    order: 1;
  }

  .project-inner-rev .project-image {
    order: 2;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── 768px: tablets portrait / large mobile ── */
@media (max-width: 768px) {

  /* Typography */
  .hero-headline {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .section-title {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
  }

  /* Sections — reduced padding */
  .services-section,
  .portfolio-section,
  .process-section,
  .why-section,
  .testimonials-section,
  .blog-section,
  .faq-section,
  .contact-section {
    padding: 72px 0;
  }

  .project-block {
    padding: 52px 0;
  }

  /* Hero */
  .hero {
    padding: 100px 5vw 60px;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-tabs {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .stat {
    padding: 0 12px;
    text-align: center;
    align-items: center;
  }

  /* Services */
  .services-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .services-tech {
    position: static;
  }

  /* Tech grid — 2 columns on mobile */
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tech-badge {
    padding: 16px 8px;
    font-size: .82rem;
  }

  /* Process */
  .process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-step {
    padding: 28px 22px;
  }

  .process-step::after {
    display: none;
  }

  /* Why Us */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Testimonials */
  .testimonials-track {
    grid-template-columns: repeat(4, 88vw);
  }

  .testimonial-card {
    padding: 24px 20px;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Contact */
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form-wrap {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-legal {
    gap: 16px;
  }

  /* Header */
  .header-cta {
    display: none;
  }

  /* Page hero */
  .page-hero {
    padding: 120px 0 60px;
  }
}

/* ── 480px: small mobile ── */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .header {
    padding: 0 4vw;
    height: 64px;
  }

  .hero {
    padding: 90px 4vw 52px;
  }

  .hero-headline {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }

  .hero-sub {
    font-size: 1rem;
  }

  .htab {
    font-size: .75rem;
    padding: 6px 12px;
  }

  .hero-actions .btn {
    max-width: 100%;
  }

  .stat strong {
    font-size: 1.6rem;
  }

  .container {
    width: min(100%, 94vw);
  }

  /* Tech grid — still 2 columns on small mobile */
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .tech-badge {
    padding: 14px 6px;
    font-size: .78rem;
  }

  .service-item {
    padding: 18px 16px;
    gap: 14px;
  }

  .why-card {
    padding: 28px 20px;
  }

  .process-step {
    padding: 24px 18px;
  }

  .testimonials-track {
    grid-template-columns: repeat(4, 92vw);
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-right: 1px solid var(--border);
    border-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .newsletter-form button {
    border-radius: 0 0 8px 8px;
    padding: 12px;
  }

  .contact-form-wrap {
    padding: 22px 16px;
  }

  .fullnav .nav-link {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .section-sub {
    font-size: .97rem;
  }

  /* Chat widget on very small screens */
  #ai-chat-toggle {
    bottom: 16px !important;
    right: 16px !important;
  }
}

/* ── Global overflow protection ── */
body {
  overflow-x: hidden;
}

/* ── Reduce section-sub bottom margin on mobile ── */
@media (max-width: 768px) {
  .section-sub {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .section-sub {
    margin-bottom: 28px;
  }

  /* About page sidebar: remove min-width so it stacks */
  .contact-inner [style*="min-width"] {
    min-width: 0 !important;
    width: 100%;
  }

  /* Make buttons full-width where possible in CTAs */
  .contact-inner .btn {
    width: 100%;
    justify-content: center;
  }
}