/* ============================================================
   TechVinz - Main Stylesheet
   Theme: Deep Purple (#4A148C) & Deep Blue (#0D47A1)
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --purple:        #4A148C;
  --purple-light:  #7B1FA2;
  --purple-xlight: #e8d5f5;
  --blue:          #0D47A1;
  --blue-light:    #1565C0;
  --blue-xlight:   #d0e4ff;
  --gradient:      linear-gradient(135deg, #4A148C 0%, #1a1a2e 100%);
  --gradient-rev:  linear-gradient(135deg, #1a1a2e 0%, #4A148C 100%);
  --text-dark:     #1a1a2e;
  --text-muted:    #6c757d;
  --white:         #ffffff;
  --light-bg:      #f8f9fa;
  --border-color:  #e9ecef;
  --shadow-sm:     0 2px 8px rgba(74,20,140,0.10);
  --shadow-md:     0 6px 20px rgba(74,20,140,0.15);
  --shadow-lg:     0 12px 40px rgba(74,20,140,0.20);
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    0.3s ease;
}

/* ---- Base Styles ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

a { text-decoration: none; transition: var(--transition); }
a:hover { color: var(--purple); }

img { max-width: 100%; height: auto; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--gradient); border-radius: 3px; }

/* ---- Selection ---- */
::selection { background: var(--purple-xlight); color: var(--purple); }

/* ---- Utility Classes ---- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg   { background: var(--gradient); }
.section-pad   { padding: 100px 0; }
.section-pad-sm{ padding: 60px 0; }
.bg-light-soft { background: #f4f1fb; }
.bg-blue-soft  { background: #e8f0fe; }

.section-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--purple-xlight);
  color: var(--purple);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 50px;
}

/* ---- Buttons ---- */
.btn-primary-gradient {
  background: var(--gradient);
  color: var(--white) !important;
  border: none;
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: inline-block;
}
.btn-primary-gradient:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--white) !important;
  opacity: 0.92;
}

.btn-outline-gradient {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
  padding: 11px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  cursor: pointer;
  display: inline-block;
}
.btn-outline-gradient:hover {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--purple);
  border: none;
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  cursor: pointer;
  display: inline-block;
}
.btn-white:hover {
  background: var(--purple-xlight);
  color: var(--purple);
  transform: translateY(-2px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
  padding: 18px 0;
  transition: all 0.4s ease;
  background: transparent;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

#mainNav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(74,20,140,0.12);
}

#mainNav .navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: white;
  -webkit-text-fill-color: white;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

#mainNav.scrolled .navbar-brand {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* Nav logo swap on scroll */
.nav-logo {
  height: 42px;
  width: auto;
  display: block;
}
.nav-logo-scrolled { display: none; }
#mainNav.scrolled .nav-logo-default { display: none; }
#mainNav.scrolled .nav-logo-scrolled { display: block; }

#mainNav .nav-link {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 15px !important;
  border-radius: 8px;
  transition: var(--transition);
}

#mainNav.scrolled .nav-link {
  color: var(--text-dark);
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}

#mainNav.scrolled .nav-link:hover,
#mainNav.scrolled .nav-link.active {
  color: var(--purple);
  background: var(--purple-xlight);
}

#mainNav .btn-nav-cta {
  background: var(--white);
  color: var(--purple);
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

#mainNav.scrolled .btn-nav-cta {
  background: var(--gradient);
  color: var(--white);
}

#mainNav .btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}
.navbar-toggler:focus { box-shadow: none; }

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
#mainNav.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234A148C' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  min-height: 100vh;
  background: var(--gradient);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: white;
  animation: floatShape 8s ease-in-out infinite;
}

.hero-shape-1 { width: 600px; height: 600px; top: -200px; right: -200px; animation-delay: 0s; }
.hero-shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; animation-delay: 2s; }
.hero-shape-3 { width: 200px; height: 200px; top: 40%; left: 40%; animation-delay: 4s; }

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -20px) scale(1.05); }
  66%       { transform: translate(-10px, 15px) scale(0.95); }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title span {
  color: rgba(255,255,255,0.7);
  display: block;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.hero-stat-item h3 {
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin: 0;
}

.hero-stat-item p {
  color: rgba(255,255,255,0.7);
  margin: 0;
  font-size: 13px;
}

.hero-img-wrap {
  position: relative;
  z-index: 2;
}

.hero-img-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: white;
}

/* ============================================================
   HERO — BROWSER MOCKUP CARD
   ============================================================ */

/* Floating badges */
.hf-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  z-index: 5;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.hf-badge-uptime  { top: -18px; left: 20px; animation: hfFloat 3s ease-in-out infinite; }
.hf-badge-deploy  { top: 28px; right: -14px; animation: hfFloat 3.5s ease-in-out infinite .5s; }
.hf-badge-visitors{ bottom: 28px; right: -18px; flex-direction: row; gap: 10px; animation: hfFloat 4s ease-in-out infinite 1s; }

@keyframes hfFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

/* Pulse dot for uptime */
.hf-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  position: relative;
}
.hf-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(74,222,128,0.35);
  animation: hfPulse 1.6s ease-out infinite;
}
@keyframes hfPulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Browser shell */
.hf-browser { padding: 0; overflow: hidden; }

.hf-browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hf-dots { display: flex; gap: 6px; }
.hf-dots span { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

.hf-url-bar {
  flex: 1;
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.hf-cursor {
  animation: hfBlink .8s step-end infinite;
  margin-left: 1px;
  color: #a78bfa;
  font-weight: 700;
}
@keyframes hfBlink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* Preview area */
.hf-preview {
  padding: 16px 18px 12px;
}

.hf-preview-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

/* Skeleton shimmer */
.hf-skel {
  background: linear-gradient(90deg, rgba(255,255,255,0.08) 25%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.08) 75%);
  background-size: 200% 100%;
  animation: hfShimmer 1.8s infinite;
  border-radius: 4px;
}
@keyframes hfShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.hf-skel-logo   { width: 60px; height: 10px; border-radius: 6px; }
.hf-skel-btn    { width: 48px; height: 18px; border-radius: 20px; background: rgba(167,139,250,0.35); }
.hf-skel-h1     { height: 13px; width: 80%; border-radius: 6px; margin-bottom: 8px; }
.hf-skel-h2     { height: 9px; width: 90%; border-radius: 5px; margin-bottom: 5px; }
.hf-skel-cta    { width: 72px; height: 22px; border-radius: 20px; }

.hf-preview-hero { margin-bottom: 16px; }

/* Three mini feature cards */
.hf-preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.hf-card-skel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px;
}
.hf-skel-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(167,139,250,0.25);
}

/* Build progress */
.hf-build-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
.hf-build-label { font-size: 10px; color: rgba(255,255,255,0.6); white-space: nowrap; }
.hf-progress-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
}
.hf-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a78bfa, #4ade80);
  border-radius: 10px;
  transition: width .35s ease;
}
.hf-build-pct { font-size: 10px; color: #a78bfa; font-weight: 700; min-width: 28px; text-align: right; }

/* ── Sites viewport ── */
.hf-preview { padding: 0; }

.hf-sites-wrap {
  position: relative;
  height: 238px;
  overflow: hidden;
}

/* Skeleton overlay — sits on top during build */
.hf-skel-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 12px 14px 10px;
  background: transparent;
  transition: opacity .55s ease, transform .55s ease;
}
.hf-skel-overlay.hf-hidden {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

/* Individual mini-site panels */
.hf-site {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
  overflow: hidden;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.hf-site.hf-site-active {
  opacity: 1;
  transform: translateY(0);
}

/* Mini nav */
.hf-site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
}
.hf-site-logo {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.hf-site-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hf-site-nav-links > span {
  font-size: 7px;
  color: #555;
}
.hf-site-cta-sm {
  font-size: 7px !important;
  color: white !important;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 700;
}

/* Mini hero */
.hf-site-hero {
  flex: 1;
  padding: 10px 10px 8px;
  position: relative;
  overflow: hidden;
}
.hf-site-badge {
  display: inline-block;
  font-size: 7px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.hf-site-h1 {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 5px;
}
.hf-site-sub {
  font-size: 7.5px;
  line-height: 1.5;
  margin-bottom: 8px;
  max-width: 72%;
}
.hf-site-btns { display: flex; gap: 6px; }
.hf-site-btn-primary {
  font-size: 7px;
  font-weight: 700;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}
.hf-site-btn-sec {
  font-size: 7px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid;
  display: inline-block;
}
.hf-deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Mini feature cards strip */
.hf-site-cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 5px;
  padding: 6px 8px;
  background: #f8fafc;
  flex-shrink: 0;
}
.hf-site-card {
  background: #fff;
  border-radius: 5px;
  padding: 6px 5px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.hf-site-card-ico { font-size: 13px; display: block; line-height: 1; }
.hf-site-card-t {
  font-size: 7px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 3px;
}
.hf-site-card-s {
  font-size: 6px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.3;
}

/* Tech stack strip */
.hf-stack-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.12);
}
.hf-stack-label { font-size: 10px; color: rgba(255,255,255,0.45); white-space: nowrap; }
.hf-stack-icons { display: flex; gap: 6px; flex-wrap: nowrap; }
.hf-stack-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform .2s, background .2s;
  cursor: default;
}
.hf-stack-icon:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}

.tech-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.tech-icon-item {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: var(--transition);
}
.tech-icon-item:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}
.tech-icon-item i {
  font-size: 24px;
  margin-bottom: 8px;
  display: block;
}
.tech-icon-item span { font-size: 11px; opacity: 0.8; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about { padding: 100px 0; }

.about-img-wrap {
  position: relative;
}
.about-img-main {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-experience-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--gradient);
  color: white;
  padding: 20px 25px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-experience-badge .num {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}
.about-experience-badge .lbl { font-size: 12px; opacity: 0.9; margin-top: 4px; }

.about-check-list { list-style: none; padding: 0; margin: 0; }
.about-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
}
.about-check-list li i {
  color: var(--purple);
  margin-top: 3px;
  flex-shrink: 0;
}

/* ============================================================
   VALUES SECTION
   ============================================================ */
#values { padding: 100px 0; background: var(--light-bg); }

.value-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent;
  height: 100%;
}
.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  border-top-color: var(--purple);
}

.value-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.value-icon i { color: white; font-size: 28px; }
.value-card h4 { font-size: 19px; margin-bottom: 12px; color: var(--text-dark); }
.value-card p  { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
#services { padding: 100px 0; }

.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.service-icon {
  width: 65px;
  height: 65px;
  background: var(--purple-xlight);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--gradient); }
.service-icon i { color: var(--purple); font-size: 26px; transition: var(--transition); }
.service-card:hover .service-icon i { color: white; }

.service-card h4 { font-size: 20px; margin-bottom: 12px; }
.service-card p   { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

.service-link {
  color: var(--purple);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-link:hover { gap: 10px; color: var(--blue); }

/* ============================================================
   STATS SECTION
   ============================================================ */
#stats {
  padding: 80px 0;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}
#stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-item { text-align: center; position: relative; z-index: 1; }
.stat-icon {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.stat-icon i { color: white; font-size: 22px; }
.stat-number {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { color: rgba(255,255,255,0.8); font-size: 15px; }

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
#products { padding: 100px 0; background: var(--light-bg); }

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: 100%;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.product-card-img {
  height: 220px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-img .product-icon-placeholder {
  font-size: 60px;
  color: rgba(255,255,255,0.6);
}
.product-cat-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,0.9);
  color: var(--purple);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}
.product-featured-tag {
  position: absolute;
  top: 14px; right: 14px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}
.product-card-body { padding: 28px; }
.product-card-body h4 { font-size: 20px; margin-bottom: 10px; }
.product-card-body p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

/* ============================================================
   PRODUCTS PAGE — Filter Tabs
   ============================================================ */
.filter-tab {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: white;
  border: 1.5px solid var(--border-color);
  transition: var(--transition);
  text-decoration: none;
}
.filter-tab:hover {
  border-color: var(--purple);
  color: var(--purple);
}
.filter-tab.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
}
.products-category-block { scroll-margin-top: 90px; }

/* ============================================================
   CLIENTS SECTION
   ============================================================ */
#clients { padding: 80px 0; }

.clients-wrap { position: relative; }

.swiper-clients {
  padding: 20px 0 40px;
}
.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 30px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100px;
}
.client-logo-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--purple-xlight);
}
.client-logo-item img {
  max-height: 55px;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}
.client-logo-item:hover img { filter: none; opacity: 1; }

.client-name-placeholder {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}
.client-logo-item:hover .client-name-placeholder { color: var(--purple); }

/* ============================================================
   TEAM SECTION
   ============================================================ */
#team { padding: 100px 0; background: var(--light-bg); }

.team-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.team-img-wrap {
  height: 280px;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}
.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-img-placeholder i { font-size: 80px; color: rgba(255,255,255,0.5); }

.team-social-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--gradient);
  padding: 14px;
  display: flex;
  justify-content: center;
  gap: 12px;
  transform: translateY(100%);
  transition: var(--transition);
}
.team-card:hover .team-social-overlay { transform: translateY(0); }
.team-social-overlay a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  transition: var(--transition);
}
.team-social-overlay a:hover { background: white; color: var(--purple); }

.team-card-body { padding: 24px; }
.team-card-body h5 { font-size: 18px; margin-bottom: 4px; }
.team-card-body span { color: var(--purple); font-size: 13px; font-weight: 500; }

/* ============================================================
   FAQ SECTION
   ============================================================ */
#faqs { padding: 100px 0; }

.faq-accordion .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  font-weight: 600;
  font-size: 16px;
  background: white;
  color: var(--text-dark);
  padding: 20px 24px;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--gradient);
  color: white;
}

.faq-accordion .accordion-button::after {
  filter: none;
}
.faq-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(10);
}

.faq-accordion .accordion-body {
  padding: 20px 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
#blog { padding: 100px 0; background: var(--light-bg); }

.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: 100%;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.blog-card-img {
  height: 220px;
  background: var(--gradient);
  overflow: hidden;
  position: relative;
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-cat-tag {
  position: absolute;
  bottom: 14px; left: 14px;
  background: var(--gradient);
  color: white;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}
.blog-card-body { padding: 26px; }
.blog-meta { display: flex; gap: 16px; margin-bottom: 12px; }
.blog-meta span { color: var(--text-muted); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.blog-card-body h5 { font-size: 18px; margin-bottom: 10px; line-height: 1.4; }
.blog-card-body h5 a { color: var(--text-dark); }
.blog-card-body h5 a:hover { color: var(--purple); }
.blog-card-body p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

/* ============================================================
   SUPPORT 24/7 SECTION
   ============================================================ */
#support247 {
  padding: 80px 0;
  background: var(--text-dark);
  position: relative;
  overflow: hidden;
}
#support247::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 50%;
  height: 100%;
  background: var(--gradient);
  clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
}
.support-content { position: relative; z-index: 2; }
.support-icon-wrap {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.support-icon-wrap i { font-size: 36px; color: white; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact { padding: 100px 0; }

.contact-info-card {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  color: white;
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 30px;
}
.contact-info-item .icon-wrap {
  width: 45px; height: 45px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .icon-wrap i { color: white; font-size: 18px; }
.contact-info-item h6 { color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.contact-info-item p  { color: white; margin: 0; font-size: 15px; }

.contact-form-wrap {
  background: white;
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  box-shadow: var(--shadow-lg);
}

.form-floating .form-control,
.form-floating .form-select {
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 15px;
  transition: var(--transition);
}
.form-floating .form-control:focus,
.form-floating .form-select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(74,20,140,0.12);
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
#newsletter {
  padding: 80px 0;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}
#newsletter::after {
  content: '';
  position: absolute;
  right: -100px; bottom: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 520px;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}
.newsletter-form input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  outline: none;
  font-size: 15px;
}
.newsletter-form button {
  background: var(--text-dark);
  color: white;
  border: none;
  padding: 16px 30px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.newsletter-form button:hover { background: #2d2d45; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
#cookieBanner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(26,26,46,0.97);
  backdrop-filter: blur(12px);
  color: white;
  padding: 18px 0;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  border-top: 2px solid var(--purple);
}
#cookieBanner.show { transform: translateY(0); }
#cookieBanner p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.85); }
#cookieBanner a { color: var(--purple-xlight); text-decoration: underline; }

/* ============================================================
   POPUP MODAL
   ============================================================ */
.popup-modal .modal-content {
  border-radius: var(--radius-lg);
  border: none;
  overflow: hidden;
}
.popup-modal .modal-header {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 20px 28px;
}
.popup-modal .modal-header .btn-close {
  filter: brightness(10);
}
.popup-modal .modal-body { padding: 30px 28px; }
.popup-modal .popup-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background-color: rgba(255, 255, 255, 0.75);
  background-image: linear-gradient(180deg, rgba(74,20,140,0.22) 0%, transparent 140px);
  color: var(--text-dark);
  padding-top: 70px;
  position: relative;
}
#footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient);
}

.footer-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: white;  
  -webkit-text-fill-color: white;  
  margin-bottom: 16px;
  display: block;
}
.footer-desc { font-size: 14px; line-height: 1.8; margin-bottom: 24px; }

.footer-heading {
  color: var(--purple);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 35px; height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--text-dark);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--purple-light); padding-left: 4px; }
.footer-links a i { font-size: 11px; color: var(--purple-light); }

.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  transition: var(--transition);
}
.social-link.twitter  { background: #1DA1F2; }
.social-link.facebook { background: #1877F2; }
.social-link.instagram{ background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-link.linkedin { background: #0A66C2; }
.social-link:hover    { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { margin: 0; font-size: 13px; }

/* ============================================================
   SECTION PAGES (service/product detail)
   ============================================================ */
.page-hero {
  background: var(--gradient);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: white;
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero h1 { color: white; }
.page-hero p   { color: rgba(255,255,255,0.8); }

.breadcrumb-item a       { color: rgba(255,255,255,0.7); }
.breadcrumb-item.active  { color: white; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* Product detail sections */
.product-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.product-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.screenshot-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.screenshot-thumb:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.feature-icon {
  width: 50px; height: 50px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon i { color: white; font-size: 20px; }
.feature-text h5 { font-size: 16px; margin-bottom: 6px; }
.feature-text p  { color: var(--text-muted); font-size: 14px; margin: 0; }

.demo-card {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  color: white;
  text-align: center;
}
.demo-card h3 { color: white; margin-bottom: 14px; }
.demo-card p  { color: rgba(255,255,255,0.8); margin-bottom: 30px; }

/* ============================================================
   BLOG PAGES
   ============================================================ */
.blog-post-content { line-height: 1.9; font-size: 16px; color: #333; }
.blog-post-content h2, .blog-post-content h3 { color: var(--text-dark); margin-top: 32px; }
.blog-post-content p  { margin-bottom: 20px; }
.blog-post-content ul, .blog-post-content ol { margin-bottom: 20px; padding-left: 24px; }
.blog-post-content li { margin-bottom: 8px; }
.blog-post-content blockquote {
  border-left: 4px solid var(--purple);
  padding: 16px 24px;
  background: var(--purple-xlight);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.blog-sidebar-widget {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.blog-sidebar-widget h5 {
  font-size: 17px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gradient);
  border-image: var(--gradient) 1;
}

/* ============================================================
   ADMIN PORTAL STYLES
   ============================================================ */
.admin-wrapper { display: flex; min-height: 100vh; background: #f0f2f5; }

.admin-sidebar {
  width: 260px;
  background: var(--text-dark);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  transition: var(--transition);
  z-index: 200;
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); }

.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-brand-text {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-brand small { color: rgba(255,255,255,0.4); font-size: 11px; display: block; }

.sidebar-section-label {
  color: rgba(255,255,255,0.3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 20px 20px 8px;
}

.sidebar-nav { list-style: none; padding: 0 12px; margin: 0; }
.sidebar-nav li { margin-bottom: 2px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,255,255,0.08);
  color: white;
}
.sidebar-nav a.active { background: var(--gradient); color: white; }
.sidebar-nav a i { width: 20px; font-size: 15px; }

.admin-main { margin-left: 260px; flex: 1; min-height: 100vh; }

.admin-topbar {
  background: white;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-topbar h1 { font-size: 20px; margin: 0; color: var(--text-dark); }
.admin-topbar .admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.admin-avatar {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.admin-content { padding: 28px; }

.admin-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}
.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.admin-card-header h5 { margin: 0; font-size: 16px; }

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.stat-card .icon-wrap {
  width: 54px; height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
}
.stat-card .icon-wrap.purple { background: var(--gradient); }
.stat-card .icon-wrap.blue   { background: linear-gradient(135deg,#1565C0,#0288D1); }
.stat-card .icon-wrap.green  { background: linear-gradient(135deg,#2e7d32,#43a047); }
.stat-card .icon-wrap.orange { background: linear-gradient(135deg,#e65100,#fb8c00); }
.stat-card .num  { font-size: 28px; font-weight: 700; color: var(--text-dark); }
.stat-card .lbl  { font-size: 13px; color: var(--text-muted); }

/* Admin tables */
.admin-table { font-size: 14px; }
.admin-table th { font-weight: 600; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; background: var(--light-bg); }
.admin-table td { vertical-align: middle; }

/* Toggle switch */
.form-switch .form-check-input {
  width: 44px; height: 22px;
  cursor: pointer;
}
.form-switch .form-check-input:checked {
  background-color: var(--purple);
  border-color: var(--purple);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  #mainNav { background: var(--text-dark) !important; }
  #mainNav .nav-link { color: rgba(255,255,255,0.8) !important; }
  .navbar-collapse { padding: 20px 0; }
  .hero-stats { gap: 24px; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-topbar { padding: 14px 16px; }
  .admin-content { padding: 16px; }
}

@media (max-width: 767.98px) {
  .section-pad   { padding: 70px 0; }
  .contact-form-wrap { padding: 30px 24px; }
  .contact-info-card  { padding: 36px 24px; }
  .hero-btns { flex-direction: column; }
  .newsletter-form { flex-direction: column; border-radius: var(--radius); }
  .newsletter-form input  { padding: 14px 20px; }
  .newsletter-form button { border-radius: 0 0 var(--radius) var(--radius); }
  #support247::before { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
