/* =============================================
   DharashivOnline — Main Stylesheet
   Modernized & Fixed
   ============================================= */

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --brand-primary:   hsl(245, 75%, 52%); /* WCAG AA tested for white text buttons */
  --brand-secondary: hsl(270, 70%, 50%); /* WCAG AA tested for white text gradients */
  --brand-accent:    hsl(210, 100%, 46%); /* Enhanced contrast link color */
  --text-primary:    hsl(222, 47%, 11%);
  --text-muted:      hsl(215, 20%, 35%); /* Deepened for AAA readability on white */
  --surface:         hsl(0, 0%, 100%);
  --surface-raised:  hsl(220, 60%, 98%);
  --shadow-sm:       0 4px 16px rgba(91, 78, 224, 0.08);
  --shadow-md:       0 10px 40px rgba(91, 78, 224, 0.14);
  --shadow-lg:       0 24px 60px rgba(91, 78, 224, 0.22);
  --radius-sm:       12px;
  --radius-md:       20px;
  --radius-lg:       28px;
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: hsl(245, 45%, 16%); /* Deep rich indigo to match primary brand */
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--brand-primary);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  font-weight: 600;
}
.skip-link:focus { top: 6px; }

*:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-contrast: high) {
  .hero-text h1 span,
  .about-text h2 span {
    -webkit-text-fill-color: initial;
    color: var(--brand-primary);
  }
  .service-box,
  .product-card {
    border: 2px solid #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== NAVBAR ===== */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
  transform: translateZ(0);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 45px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--brand-primary); }

.nav-btn {
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff !important;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}
.nav-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}
.nav-btn::after { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: #111827;
  border-radius: 3px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    transition: transform 0.35s ease;
  }
  .nav-links.active { transform: translateY(0); }
  .nav-links a { font-size: 17px; }
  .logo img { height: 38px; }
}

/* ===== HERO SECTION ===== */
.hero-new {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.hero-new::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("download (4).jpg") center / cover no-repeat;
  transform: scale(1.12);
  z-index: 1;
}

.hero-new::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: 2;
}

.hero-wrap {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: auto;
  padding: 120px 20px 100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 52px;
  line-height: 1.1;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero-text h1 span {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 18px;
  color: var(--text-muted);
  margin: 20px 0 32px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 12px 35px rgba(91, 78, 224, 0.35);
  transition: var(--transition-spring);
}
.hero-btn-primary:hover {
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 16px 45px rgba(91, 78, 224, 0.5);
}

.hero-btn-secondary {
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
  background: #fff;
  transition: var(--transition-fast);
}
.hero-btn-secondary:hover {
  background: var(--brand-primary);
  color: #fff;
  transform: scale(1.05);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img {
  width: 120%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: floatImg 8s ease-in-out infinite;
  transition: transform 0.3s ease;
  object-fit: cover;
  will-change: transform;
}

@keyframes floatImg {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%       { transform: translateY(-8px) rotate(0.5deg); }
  50%       { transform: translateY(-16px) rotate(0deg); }
  75%       { transform: translateY(-8px) rotate(-0.5deg); }
}

.hero-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(91, 78, 224, 0.5);
}

@media (max-width: 900px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    padding: 60px 16px 50px;
    gap: 30px;
    text-align: center;
  }
  .hero-text h1 { font-size: 36px; }
  .hero-text p { font-size: 16px; }
  .hero-btns { justify-content: center; }
  .hero-badge { position: static; margin: 12px auto 0; }
}

@media (max-width: 480px) {
  .hero-wrap { padding: 40px 12px; }
  .hero-text h1 { font-size: 28px; }
  .hero-text p { font-size: 15px; margin: 12px 0 24px; }
  .hero-btn-primary,
  .hero-btn-secondary { width: 100%; max-width: 280px; text-align: center; }
  .hero-img { max-width: 280px; animation: none; }
}

/* ===== ABOUT SECTION ===== */
.about-premium {
  padding: 100px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

.about-premium::before,
.about-premium::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
}
.about-premium::before {
  background: var(--brand-primary);
  top: -100px;
  left: -100px;
}
.about-premium::after {
  background: var(--brand-secondary);
  bottom: -120px;
  right: -100px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.about-text h2 {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.about-text h2 span {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-tagline {
  font-size: 20px;
  margin: 16px 0 24px;
  color: var(--text-muted);
  font-weight: 500;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}

.feature-box {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-spring);
  color: var(--text-muted);
}
.feature-box:hover {
  transform: translateY(-6px);
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.about-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  transition: var(--transition-spring);
}
.about-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: var(--shadow-md);
}

.about-visual { position: relative; }

.about-main-img {
  width: 100%;
  max-width: 450px;
  height: 500px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: all 0.5s ease;
  object-fit: cover;
}
.about-main-img:hover {
  transform: scale(1.03) rotate(0.5deg);
  box-shadow: 0 45px 120px rgba(0,0,0,0.2);
}

.about-stats {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.stat-box {
  background: rgba(2, 6, 23, 0.88);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 120px;
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}
.stat-box:hover { transform: translateY(-6px); background: rgba(91, 78, 224, 0.25); }
.stat-box h3 { font-size: 24px; color: #a5b4fc; }
.stat-box p { font-size: 13px; color: #e3e4eb; }

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-text h2 { font-size: 36px; }
  .about-tagline { font-size: 18px; }
  .about-text p { font-size: 15px; }
  .about-main-img { max-width: 400px; height: auto; margin: 0 auto; display: block; }
  .about-stats { justify-content: center; }
}

/* ===== SERVICES SECTION ===== */
.services-modern {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  position: relative;
}

.services-title {
  text-align: center;
  font-size: 42px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.services-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.6;
}

.services-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.service-box {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: var(--transition-spring);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.service-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-box:hover::before { opacity: 1; }
.service-box:hover {
  transform: translateY(-14px) scale(1.02);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.88);
}

.service-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  transition: 0.4s;
}
.service-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.service-box:hover .service-icon {
  transform: scale(1.15) rotate(6deg);
  box-shadow: 0 12px 40px rgba(91, 78, 224, 0.4);
}

.service-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: #020617;
  transition: color 0.3s ease;
}
.service-box p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.service-box:hover h3 { color: var(--brand-primary); }

.service-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: letter-spacing 0.3s;
  position: relative;
  z-index: 3;
}
.service-link:hover { letter-spacing: 0.5px; }

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .service-box { padding: 28px 20px; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .services-title { font-size: 32px; }
  .services-subtitle { font-size: 16px; }
}

/* ===== PRODUCTS SECTION ===== */
.products-modern {
  padding: 100px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
  position: relative;
}

.products-title {
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.products-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.6;
}

.products-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* Card Base */
.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-spring);
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid rgba(99, 102, 241, 0.07);
  display: flex;
  flex-direction: column;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 1;
}
.product-card:hover::before { opacity: 1; }
.product-card:hover {
  transform: translateY(-12px) scale(1.015);
  box-shadow: var(--shadow-lg);
}

/* Image Area */
.product-image-wrapper {
  position: relative;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.product-card:hover .product-image { transform: scale(1.08); }

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(15, 23, 42, 0.55));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.product-card:hover .product-overlay { opacity: 1; }

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.product-rating {
  position: absolute;
  bottom: 12px;
  left: 14px;
  display: flex;
  gap: 3px;
  z-index: 2;
}
.product-rating i {
  color: #fbbf24;
  font-size: 11px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}

/* Card Content */
.product-content {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 18px;
  font-weight: 700;
  color: #020617;
  transition: color 0.3s;
  line-height: 1.3;
}
.product-card:hover .product-title { color: var(--brand-primary); }

.product-description {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

/* Stats */
.product-stats {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(99, 102, 241, 0.09);
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
}
.stat-label {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

/* Product Button */
.product-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-spring);
  box-shadow: 0 4px 14px rgba(91, 78, 224, 0.3);
  align-self: flex-start;
  position: relative;
  z-index: 3;
}
.product-button:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(91, 78, 224, 0.48);
  color: #fff;
}

/* Legacy product-link class (kept for compatibility) */
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: letter-spacing 0.3s;
  position: relative;
  z-index: 3;
}
.product-link:hover { letter-spacing: 0.5px; }

@media (max-width: 1000px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; gap: 16px; }
  .products-title { font-size: 32px; }
  .products-subtitle { font-size: 16px; }
  .product-image-wrapper { height: 180px; }
}

/* ===== GLASS NAV (Tailwind section supplement) ===== */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
  transform: translateZ(0);
}

/* ===== FLOATING ACTION BUTTON ===== */
.fab-phone {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  z-index: 9998;
  animation: fabPulse 2.8s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 30px rgba(91, 78, 224, 0.5);
}
.fab-phone:hover {
  transform: scale(1.15) rotate(-15deg);
  color: #fff;
}

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(91, 78, 224, 0.45); }
  50%       { box-shadow: 0 8px 50px rgba(91, 78, 224, 0.75), 0 0 0 14px rgba(91, 78, 224, 0.1); }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"] {
  transform: translateX(-36px);
}
[data-reveal="right"] {
  transform: translateX(36px);
}
[data-reveal="left"].revealed,
[data-reveal="right"].revealed {
  transform: translateX(0);
}
[data-reveal="scale"] {
  transform: scale(0.88);
}
[data-reveal="scale"].revealed {
  transform: scale(1);
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #0f172a;
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 99999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { background: linear-gradient(135deg, #059669, #10b981); }
.toast.error   { background: linear-gradient(135deg, #dc2626, #ef4444); }

/* ===== RIPPLE EFFECT ===== */
.ripple-effect { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: rippleAnim 0.65s ease-out;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ===== LOADING SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}



/* ===== GPU ACCELERATION ===== */
.hero-img,
.service-box,
.product-card,
.about-main-img,
.hero-btn-primary,
.hero-btn-secondary,
.nav-btn,
.about-btn,
.product-button,
.fab-phone {
  transform: translateZ(0);
  will-change: transform;
}

html { scroll-behavior: smooth; }

@media (max-width: 768px) {
  .fab-phone { bottom: 20px; right: 20px; width: 52px; height: 52px; font-size: 19px; }
  .toast { white-space: normal; max-width: 85vw; text-align: center; border-radius: 16px; }
}

/* =============================================
   HERO SECTION GRID BACKGROUND
   ============================================= */

#home,
.hero-gradient-new {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
}

#home h1 {
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#home .text-gradient {
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

#home p {
  color: rgba(255, 255, 255, 0.9);
}

/* Dot grid layer */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(91, 78, 224, 0.20) 1.2px, transparent 1.2px);
  background-size: 34px 34px;
  pointer-events: none;
  z-index: 0;
}

/* Thin line grid layer on top of dots */
.hero-grid-diagonal {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 78, 224, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 78, 224, 0.055) 1px, transparent 1px);
  background-size: 68px 68px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow orbs over grid */
#home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 72% 38%, rgba(91, 78, 224, 0.16) 0%, transparent 52%),
    radial-gradient(ellipse at 12% 72%, rgba(155, 93, 229, 0.11) 0%, transparent 48%),
    radial-gradient(ellipse at 50% 5%,  rgba(99, 102, 241, 0.09) 0%, transparent 44%);
  pointer-events: none;
  z-index: 0;
}

/* Fade grid out at the bottom edge */
#home::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #f0f4ff);
  pointer-events: none;
  z-index: 1;
}

/* Hero content always above grid + fade */
.section-grid-content {
  position: relative;
  z-index: 2;
}

/* =============================================
   ENHANCED SHADOWS — SERVICE CARDS
   ============================================= */

.service-box {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 20px rgba(91, 78, 224, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.service-box:hover {
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.07),
    0 20px 56px rgba(91, 78, 224, 0.24),
    0 0 0 1.5px rgba(91, 78, 224, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* Per-card colour-matched glow on hover */
.service-box:nth-child(1):hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.05), 0 20px 56px rgba(99,102,241,0.28), 0 0 0 1.5px rgba(99,102,241,0.16), inset 0 1px 0 rgba(255,255,255,.95);
}
.service-box:nth-child(2):hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.05), 0 20px 56px rgba(16,185,129,0.22), 0 0 0 1.5px rgba(16,185,129,0.14), inset 0 1px 0 rgba(255,255,255,.95);
}
.service-box:nth-child(3):hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.05), 0 20px 56px rgba(59,130,246,0.22), 0 0 0 1.5px rgba(59,130,246,0.14), inset 0 1px 0 rgba(255,255,255,.95);
}
.service-box:nth-child(4):hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.05), 0 20px 56px rgba(249,115,22,0.22), 0 0 0 1.5px rgba(249,115,22,0.14), inset 0 1px 0 rgba(255,255,255,.95);
}

/* =============================================
   ENHANCED SHADOWS — PRODUCT CARDS
   ============================================= */

.product-card {
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.05),
    0 6px 24px rgba(91, 78, 224, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.product-card:hover {
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.08),
    0 28px 72px rgba(91, 78, 224, 0.26),
    0 0 0 1.5px rgba(91, 78, 224, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* =============================================
   ENHANCED SHADOWS — ABOUT FEATURE BOXES
   ============================================= */

.feature-box {
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(91, 78, 224, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.feature-box:hover {
  box-shadow:
    0 8px 32px rgba(91, 78, 224, 0.20),
    0 4px 16px rgba(99, 102, 241, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* =============================================
   DARK MODE — grid & shadow overrides
   ============================================= */

@media (prefers-color-scheme: dark) {
  #home, .hero-gradient-new {
    background: linear-gradient(135deg, hsl(230,42%,7%) 0%, hsl(245,40%,10%) 100%);
  }
  .hero-grid {
    background-image: radial-gradient(circle, rgba(155,93,229,0.26) 1.2px, transparent 1.2px);
    background-size: 34px 34px;
  }
  .hero-grid-diagonal {
    background-image:
      linear-gradient(rgba(155,93,229,0.09) 1px, transparent 1px),
      linear-gradient(90deg, rgba(155,93,229,0.09) 1px, transparent 1px);
    background-size: 68px 68px;
  }
  #home::before {
    background:
      radial-gradient(ellipse at 72% 38%, rgba(91,78,224,0.28) 0%, transparent 52%),
      radial-gradient(ellipse at 12% 72%, rgba(155,93,229,0.20) 0%, transparent 48%);
  }
  #home::after {
    background: linear-gradient(to bottom, transparent, hsl(230,42%,7%));
  }
  .service-box {
    box-shadow: 0 2px 12px rgba(0,0,0,0.32), 0 4px 24px rgba(91,78,224,0.14), inset 0 1px 0 rgba(255,255,255,0.06);
  }
  .service-box:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.44), 0 20px 60px rgba(91,78,224,0.38), 0 0 0 1.5px rgba(91,78,224,0.26), inset 0 1px 0 rgba(255,255,255,0.06);
  }
  .product-card {
    box-shadow: 0 2px 12px rgba(0,0,0,0.30), 0 6px 24px rgba(91,78,224,0.12), inset 0 1px 0 rgba(255,255,255,0.04);
  }
  .product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.44), 0 28px 72px rgba(91,78,224,0.40), 0 0 0 1.5px rgba(91,78,224,0.24), inset 0 1px 0 rgba(255,255,255,0.04);
  }
}

