/* All rules are scoped under #services-page to avoid leaking styles */
#services-page {
  --bg: #0b0f1a;
  --muted: #9aa3b2;
  --text: #e7ecf3;
  --brand: #5b8cff;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

#services-page * {
  box-sizing: border-box;
}

#services-page a {
  color: var(--text);
  text-decoration: none;
}

#services-page a:hover {
  text-decoration: underline;
}

#services-page .bg-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#services-page .container {
  width: min(1000px, 92%);
  margin-inline: auto;
}

/* Header */
#services-page .inner-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 26, 0.8);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#services-page .inner-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

#services-page .brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

#services-page .brand img {
  display: block;
  max-height: 40px;
  height: 40px;
  width: auto;
}

#services-page .nav a {
  margin-left: 18px;
  color: #060606;
}

#services-page .nav a.active,
#services-page .nav a:hover {
  color: var(--text);
}

/* Hero */
#services-page .hero {
  padding: 64px 0 24px;
}

#services-page .hero h1 {
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 8px;
}

#services-page .hero p {
  color: var(--muted);
  max-width: 60ch;
}

/* Cards */
#services-page .cards {
  padding: 32px 0 72px;
}

#services-page .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Attractive card styles */
#services-page .card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(0) scale(1);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

#services-page .card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), rgba(255, 255, 255, 0));
  opacity: .85;
}

#services-page .card::after {
  content: "";
  position: absolute;
  right: -30%;
  top: -30%;
  width: 60%;
  height: 60%;
  background: radial-gradient(closest-side, rgba(93, 140, 255, 0.18), rgba(93, 140, 255, 0));
  transform: rotate(25deg);
  pointer-events: none;
}

#services-page .card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.18);
}

#services-page .card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: .2px;
}

#services-page .card p {
  margin: 0;
  color: var(--muted);
}

/* Reveal on scroll */
#services-page .card {
  opacity: 0;
  transform: translateY(14px);
}

#services-page .card.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s ease, transform .5s ease;
}

#services-page .grid .card:nth-child(1).reveal {
  transition-delay: .02s;
}

#services-page .grid .card:nth-child(2).reveal {
  transition-delay: .08s;
}

#services-page .grid .card:nth-child(3).reveal {
  transition-delay: .14s;
}

#services-page .grid .card:nth-child(4).reveal {
  transition-delay: .20s;
}

#services-page .grid .card:nth-child(5).reveal {
  transition-delay: .26s;
}

#services-page .grid .card:nth-child(6).reveal {
  transition-delay: .32s;
}

/* Footer */
#services-page .inner-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
  color: var(--muted);
}

/* Preloader (scoped) */
#services-page .preloader {
  position: fixed;
  inset: 0;
  background: #151518;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#services-page .preloader.loaded {
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}

#services-page .animation-preloader {
  text-align: center;
}

#services-page .animation-preloader .spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--brand);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spinner 1s linear infinite;
}

#services-page .animation-preloader .txt-loading {
  display: inline-flex;
  gap: 4px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 2px;
}

#services-page .loader {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#services-page .loader .loader-section .bg {
  background: #0f1117;
  height: 100%;
}

/* Mouse Cursor (scoped) */
#services-page .mouse-cursor {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  visibility: hidden;
}

#services-page .cursor-inner {
  width: 8px;
  height: 8px;
  background: var(--brand);
  mix-blend-mode: difference;
}

#services-page .cursor-outer {
  width: 30px;
  height: 30px;
  border: 2px solid var(--brand);
  mix-blend-mode: difference;
}

#services-page a:hover~.cursor-outer,
#services-page a:hover~.cursor-inner,
#services-page .cursor-hover {
  transform: translate(-50%, -50%) scale(1.2);
}

/* Hero (scoped minimal) */
#services-page .hero-secton {
  position: relative;
  padding: 80px 0;
}

#services-page .hero-secton .hero-content p {
  color: var(--muted);
  margin-bottom: 10px;
}

#services-page .hero-secton h1 {
  font-size: 48px;
  line-height: 1.1;
}

#services-page .hero-secton .hero-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
}

@media (max-width: 991px) {
  #services-page .hero-secton .hero-image {
    position: static;
    width: 100%;
    height: 240px;
    margin-top: 20px;
    background-size: cover;
  }
}

/* Overlay headline on image */
#services-page .hero-secton .hero-content .color-bg {
  position: relative;
  display: inline-block;
}

#services-page .hero-secton .hero-content .color-bg img {
  display: block;
  max-width: 100%;
  height: auto;
}

#services-page .hero-secton .hero-content .color-bg .overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

@media (max-width: 767px) {
  #services-page .hero-secton .hero-content .color-bg .overlay-text {
    font-size: 26px;
  }
}

#services-page .hero-secton .hero-content {
  text-align: center;
}

#services-page .hero-secton .hero-content .color-bg {
  margin: 0 auto 12px;
}

/* SEO hero text (unscoped to ensure it applies on services.html) */
.hero-secton .seo-hero-title {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.2px;
  text-align: center;
  background: linear-gradient(90deg, #ffffff 0%, #8dffde 60%, #5b8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.hero-secton .seo-hero-subtitle {
  margin: 0 auto 6px;
  max-width: 820px;
  text-align: center;
  color: #e7ecf3;
  opacity: 0.95;
  font-size: 18px;
}

@media (max-width: 991px) {
  .hero-secton .seo-hero-title {
    font-size: 38px;
  }

  .hero-secton .seo-hero-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  .hero-secton .seo-hero-title {
    font-size: 30px;
  }

  .hero-secton .seo-hero-subtitle {
    font-size: 15px;
  }
}

/* Pricing (scoped) */
#services-page .pricing-section {
  padding: 56px 0 60px;
}

#services-page .pricing-section .section-title h2 {
  font-size: 36px;
  margin-bottom: 8px;
}

#services-page .pricing-section .section-title .subtitle {
  color: var(--muted);
}

#services-page .pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1100px) {
  #services-page .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #services-page .pricing-grid {
    grid-template-columns: 1fr;
  }
}

#services-page .pricing-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
}

#services-page .pricing-card .icon img {
  width: 40px;
  height: 40px;
}

#services-page .pricing-card .pricing-header h2 {
  color: var(--text);
  margin-top: 6px;
}

#services-page .pricing-card .pricing-list {
  margin: 12px 0 16px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

#services-page .pricing-card .btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #1D1D21;
  color: var(--theme, #8dffde);
}

#services-page .pricing-card .btn:hover {
  background: var(--brand);
  color: #0b0f1a;
}

/* Pricing (homepage visual parity) */
#services-page .section-title-area {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

#services-page .section-title.ml-200 {
  margin-left: 0;
}

#services-page .section-title h6 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 600;
  margin-bottom: 8px;
}

#services-page .section-title h6 img {
  width: 18px;
  height: 18px;
}

#services-page .section-title h2 {
  font-size: 42px;
  line-height: 1.2;
}

@media (max-width: 767px) {
  #services-page .section-title h2 {
    font-size: 32px;
  }
}

#services-page .pricing-section .nav .nav-link {
  border-radius: 50px;
  border: 1px solid rgba(207, 208, 212, 0.2);
  background: #8dffde;
  color: #000;
  padding: 10px 18px;
}

#services-page .pricing-section .nav .nav-link.active {
  background-color: var(--theme, #8dffde);
  color: #151518;
}

#services-page .pricing-box-items {
  background: #1D1D21;
  border: 1px solid rgba(207, 208, 212, 0.2);
  border-radius: 16px;
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#services-page .pricing-box-items .icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--theme, #344e47);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

#services-page .pricing-box-items .icon img {
  width: 36px;
  height: 36px;
}

#services-page .pricing-box-items .pricing-header h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

#services-page .pricing-box-items .pricing-header p {
  color: var(--muted);
  margin-bottom: 8px;
}

#services-page .pricing-box-items .pricing-header h2 {
  font-size: 34px;
  color: var(--white);
}

#services-page .pricing-box-items .pricing-list {
  margin: 14px 0 18px;
  display: grid;
  gap: 10px;
}

#services-page .pricing-box-items .pricing-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

#services-page .pricing-box-items .pricing-list li svg {
  flex: 0 0 auto;
}

#services-page .pricing-box-items .pricing-button {
  margin-top: auto;
}

/* Scoped theme button clone */
#services-page .theme-btn {
  display: inline-block;
  color: var(--theme, #8dffde);
  font-size: 17px;
  font-weight: 700;
  padding: 18px 32px;
  line-height: 1;
  border-radius: 30px;
  border: 1px solid rgba(207, 208, 212, 0.2);
  background: #1D1D21;
  transition: .4s ease;
}

#services-page .theme-btn i {
  margin-left: 10px;
}

#services-page .theme-btn:hover {
  color: #151518;
  background: var(--theme, #8dffde);
}

/* Services Slider */
#services-page .services-slider-section {
  padding: 20px 0 56px;
}

#services-page .services-slider {
  position: relative;
}

#services-page .slide-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

#services-page .slide-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 12px;
}

#services-page .services-slider-pagination {
  margin-top: 10px;
  text-align: center;
}

#services-page .services-slider-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#services-page .services-slider-nav .array-prev,
#services-page .services-slider-nav .array-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #1D1D21;
  color: var(--theme, #8dffde);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  pointer-events: auto;
}

#services-page .services-slider-nav .array-prev {
  right: 8px;
}

#services-page .services-slider-nav .array-next {
  left: 8px;
}

/* Accordion */
#services-page .services-faq {
  padding: 8px 0 64px;
}

#services-page .services-faq .accordion {
  display: grid;
  gap: 12px;
}

#services-page .services-faq .accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

#services-page .services-faq .header-area {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

#services-page .services-faq .content-area {
  padding: 0 16px 14px;
  color: var(--muted);
  display: none;
}

#services-page .services-faq .accordion-item.active .header-area {
  color: var(--text);
}

#services-page .services-faq .accordion-item.active .content-area {
  display: block;
}

/* Footer (scoped clone of index styles) */
#services-page .footer-section {
  padding-top: 60px;
  background: var(--bg);
  color: var(--text);
}

#services-page .footer-section .footer-widgets-wrapper {
  padding-bottom: 30px;
}

#services-page .footer-section .single-footer-widget {
  margin-bottom: 24px;
}

#services-page .footer-section .footer-brand .logo-img img {
  max-height: 72px;
}

#services-page .footer-section .widget-head h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

#services-page .footer-section .list-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

#services-page .footer-section .list-items li {
  margin-bottom: 8px;
}

#services-page .footer-section .list-items a {
  color: var(--muted);
}

#services-page .footer-section .list-items a:hover {
  color: var(--text);
}

#services-page .footer-section .social-icon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  margin-right: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

#services-page .footer-section .social-icon a:hover {
  color: var(--bg);
  background: var(--brand);
  border-color: transparent;
}

#services-page .footer-section .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
  margin-top: 16px;
}

#services-page .footer-section .footer-bottom-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#services-page .footer-section .footer-bottom p {
  color: var(--muted);
}

#services-page .footer-section .footer-menu {
  display: flex;
  gap: 14px;
}

#services-page .footer-section .footer-menu a {
  color: var(--muted);
}

#services-page .footer-section .footer-menu a:hover {
  color: var(--text);
}

/* Contact Form Section */
.contact-form-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-title {
  font-size: 32px;
  font-weight: 700;
  color: #1D1D21;
  margin-bottom: 12px;
  text-align: center;
}

.form-subtitle {
  font-size: 16px;
  color: #666;
  text-align: center;
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #1D1D21;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  background: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8dffde;
  background: white;
  box-shadow: 0 0 0 3px rgba(141, 255, 222, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(141, 255, 222, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.error-message {
  font-size: 12px;
  color: #e74c3c;
  margin-top: 4px;
  display: none;
}

.error-message.show {
  display: block;
}

.success-message {
  padding: 14px;
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  margin-top: 20px;
}

.error-message-box {
  padding: 14px;
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-wrapper {
    padding: 30px 20px;
  }

  .form-title {
    font-size: 24px;
  }

  .form-subtitle {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  #services-page .inner-header .nav {
    display: none;
  }

  #services-page .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 900px) {
  #services-page .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  #services-page .grid {
    grid-template-columns: 1fr;
  }

  #services-page .hero h1 {
    font-size: 32px;
  }
}

/* Blog Pages (scoped) */
#blog-page, #blog-single-page {
  --bg: #0b0f1a;
  --text: #e7ecf3;
  --muted: #9aa3b2;
  --brand: #5b8cff;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#blog-page .section-bg, #blog-single-page .section-bg { background: transparent; }

#blog-single-page #read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #8dffde, #5b8cff);
  z-index: 10000;
}

#blog-single-page #post-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; }
#blog-single-page #meta { color: var(--muted); }

#blog-single-page #post-content,
#blog-page .pricing-header p {
  font-size: 17px; line-height: 1.85; color: var(--text);
}

#blog-single-page #post-content h2,
#blog-single-page #post-content h3,
#blog-single-page #post-content h4 { margin-top: 1.6em; margin-bottom: 0.6em; }

#blog-single-page #post-content p { margin: 0 0 1em; }
#blog-single-page #post-content img { border-radius: 12px; }

#blog-single-page #post-content blockquote {
  margin: 1.2em 0; padding: 14px 16px; border-left: 4px solid var(--brand);
  background: rgba(255,255,255,0.04); color: var(--text);
}

#blog-single-page .share-bar { display: inline-flex; align-items: center; gap: 10px; }
#blog-single-page .share-bar .share-label { color: var(--muted); }
#blog-single-page .share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14); color: var(--text);
  background: rgba(255,255,255,0.04);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
#blog-single-page .share-btn:hover { transform: translateY(-2px); background: var(--brand); color: #0b0f1a; border-color: transparent; }
#blog-single-page .share-btn.copied { background: #8dffde; color: #0b0f1a; }
