/* =============================== Smooth Scrolling =============================== */
html {
  scroll-behavior: smooth;
}

/* =============================== Reset & Font Rendering =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, p, h1, h2, h3, h4, h5, h6, a, li, span {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* =============================== Base Body =============================== */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff; /* unified default background */
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden; /* prevent horizontal scrolling */
  margin-top: 0;
}

/* Add margin when banner is visible */
body:has(.backup-banner) {
  margin-top: 60px;
}

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

html {
  scroll-behavior: smooth;
}

/* =============================== Global Containers =============================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2em;
}

@media (max-width: 768px) {
  .container {
    padding: 1em;
    max-width: 100%;
    width: 100%;
    margin: 0;
  }
  
  /* Ensure all sections use full width on mobile */
  section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
}

/* =============================== Section Titles & Dividers =============================== */
.section-title {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #002855;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.services-page #managed-packages-title.section-title {
  color: #ffffff;
}

.services-page .on-demand .section-title {
  color: #000000; /* black */
}

.services-page .consulting .section-title {
  color: #000000; /* black */
}

.services-page .addons .section-title {
  color: #000000; /* black */
}

.services-page .why-it-matters .section-title {
  color: #000000; /* black */
}

.about-page .section-title {
  color: #000000;  /* black */
}


.section-subline {
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  color: #666;
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 700px;
  position: relative;
}

.services-page .packages2 .section-subline {
  color: #f1f1f1;  
  
}


.section-divider {
  width: 56px;
  height: 3px;
  background: #0073e6;
  border-radius: 2px;
  margin: 0.8rem auto 2rem auto;
}

.section-divider .blue-line {
  display: block;
  width: 40px;
  height: 3px;
  background: #0073e6;
  margin: 0 auto 6px auto;
  border-radius: 2px;
}

/* =============================== Header =============================== */
header {
  background-color: #000;
  color: white;
  padding: 1.5em 2em;
  width: 100%;
}

.header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.header-content img {
  height: 200px;
  flex-shrink: 0;
}

/* Explicit sizing for SVG logo */
/* Glassy logo wrapper with sheen */
header .logo-wrap {
  position: relative;
  display: inline-block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden; /* hide sheen outside logo bounds */
  margin-right: 1.5rem;
}

header .logo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  background-position: -150% 0;
  opacity: 0; /* hidden by default */
  pointer-events: none;
  /* Mask the sheen to the logo silhouette so no square is visible */
  -webkit-mask-image: url('../images/logo.svg');
  mask-image: url('../images/logo.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  /* periodic gentle sweep */
  animation: logo-sheen-periodic 6s linear infinite;
}

header .logo-wrap:hover::before {
  animation: logo-sheen 1.1s ease-out 1 both;
}

@keyframes logo-sheen {
  0% {
    opacity: 0;
    background-position: -150% 0;
  }
  10% {
    opacity: 0.85;
  }
  60% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    background-position: 150% 0;
  }
}

/* Long idle, brief sweep to gently attract attention */
@keyframes logo-sheen-periodic {
  0% {
    opacity: 0;
    background-position: -150% 0;
  }
  85% {
    opacity: 0;
    background-position: -150% 0; /* stay idle */
  }
  95% {
    opacity: 0.7;
    background-position: 50% 0; /* mid sweep */
  }
  100% {
    opacity: 0;
    background-position: 150% 0; /* finish sweep off right */
  }
}

header .site-logo {
  height: 120px;
  width: auto;
  display: block;
}

.header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.header-text h1 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
}

.header-text p {
  font-size: 1em;
  margin: 0.1em 0;
  color: #f1f1f1;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.header-tagline {
  text-align: right;
  margin-left: 7em;
  max-width: 350px;
}

.header-tagline h2 {
  font-size: 1.8em;
  margin: 0;
  color: #f77f00;
}

.header-tagline p {
  font-size: 1em;
  margin: 0.2em 0 0;
  color: #f1f1f1;
}

/* =============================== Navigation =============================== */
.header-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5em;
  margin-left: 5em;
  align-items: center;
  padding: 0;
}

.header-nav ul li {
  display: flex;
  align-items: center;
}

.header-nav ul li a {
  color: white;
  font-weight: bold;
  font-size: 1em;
  padding: 0.5em 1em;
  line-height: 1;
  transition: color 0.3s, background-color 0.3s ease;
}

.header-nav ul li a:hover {
  color: #4169E1;
}

/* =============================== Mobile Header Responsive =============================== */
@media (max-width: 1024px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .header-content img {
    height: 120px;
  }
  header .site-logo { height: 100px; }
  header .logo-wrap { margin-right: 1rem; }
  
  .header-text {
    text-align: center;
  }
  
  .header-text h1 {
    font-size: 1.3em;
  }
  
  .header-text p {
    font-size: 0.9em;
  }
  
  .header-tagline {
    text-align: center;
    margin-left: 0;
    max-width: 100%;
  }
  
  .header-tagline h2 {
    font-size: 1.4em;
  }
  
  .header-nav ul {
    margin-left: 0;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .header-nav ul li a {
    font-size: 0.9em;
    padding: 0.4em 0.8em;
  }
  
  .header-nav .contact-btn,
  .header-nav .support-btn {
    font-size: 0.9em;
    padding: 0.4em 1em;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  
  .header-content {
    gap: 0.8rem;
  }
  
  .header-content img {
    height: 80px;
  }
  header .site-logo { height: 80px; }
  header .logo-wrap { margin-right: 0; margin-bottom: 0.5rem; }
  
  .header-text h1 {
    font-size: 1.1em;
  }
  
  .header-text p {
    font-size: 0.8em;
  }
  
  .header-tagline h2 {
    font-size: 1.2em;
  }
  
  .header-tagline p {
    font-size: 0.9em;
  }
  
  .header-nav ul {
    gap: 0.5rem;
    flex-direction: column;
    width: 100%;
  }
  
  .header-nav ul li {
    width: 100%;
    justify-content: center;
  }
  
  .header-nav ul li a {
    font-size: 0.85em;
    padding: 0.5em 1em;
    display: block;
    width: 100%;
    text-align: center;
  }
  
  .header-nav .contact-btn,
  .header-nav .support-btn {
    font-size: 0.85em;
    padding: 0.5em 1em;
    width: 100%;
    text-align: center;
    margin: 0.2rem 0;
  }
}

.header-nav .contact-btn,
.header-nav .support-btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  color: white;
  padding: 0.5em 1.2em;
  font-size: 1em;
  font-weight: bold;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.header-nav .contact-btn::before,
.header-nav .support-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.header-nav .contact-btn:hover::before,
.header-nav .support-btn:hover::before {
  left: 100%;
}

.header-nav .contact-btn {
  background: linear-gradient(135deg, #4169E1 0%, #5a7cff 100%);
  box-shadow: 0 2px 8px rgba(65, 105, 225, 0.3);
}

.header-nav .contact-btn:hover {
  background: linear-gradient(135deg, #5a7cff 0%, #4169E1 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(65, 105, 225, 0.4);
}

.header-nav .support-btn {
  background: linear-gradient(135deg, #f77f00 0%, #ff9500 100%);
  box-shadow: 0 2px 8px rgba(247, 127, 0, 0.3);
}

.header-nav .support-btn:hover {
  background: linear-gradient(135deg, #ff9500 0%, #f77f00 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(247, 127, 0, 0.4);
}

/* =============================== Footer =============================== */
footer {
  background-color: #1c1c1b;
  color: #f1f1f1;
  font-size: 0.9rem;
  margin-top: 0; /* removed grey gap above footer */
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left, .footer-center, .footer-right {
  flex: 1 1 250px;
  margin: 0.5em;
}

.footer-left h3 {
  color: #ffffff;
  margin-bottom: 0.5em;
}

.footer-center ul {
  list-style: none;
  padding: 0;
}

.footer-center ul li {
  margin: 0.5em 0;
}

.footer-center ul li a {
  color: #f1f1f1;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-center ul li a:hover {
  color: #3399ff;
}

.footer-right p {
  margin: 0.3em 0;
}
.footer-right i {
  margin-right: 8px;
  color: #3399ff;
}

.footer-bottom {
  text-align: center;
  padding: 1em;
  border-top: 1px solid #333;
  margin-top: 1em;
  font-size: 0.8rem;
  color: #aaa;
}

/* =============================== Header Nav Active State =============================== */
.header-nav ul li a.active {
  color: #66a8ff;
  position: relative;
}

.header-nav ul li a.active::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, #0a66c2, #66a8ff);
  border-radius: 2px;
}

/* =============================== Enhanced Buttons =============================== */
.hero-btn,
.btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a66c2 0%, #0073e6 100%);
  color: white;
  padding: 0.95em 1.9em;
  border-radius: 6px;
  font-size: 1.06rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.hero-btn::before,
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.hero-btn:hover::before,
.btn:hover::before {
  left: 100%;
}

.hero-btn:hover,
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(10, 102, 194, 0.4);
}

/* =============================== Interactive Elements =============================== */

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0a66c2 0%, #0073e6 50%, #60a5fa 100%);
  width: 0%;
  transition: width 0.1s ease;
  box-shadow: 
    0 0 20px rgba(10, 102, 194, 0.6),
    0 0 40px rgba(10, 102, 194, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Section Navigation */
.section-nav {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.section-nav.show {
  opacity: 1;
  visibility: visible;
}

.section-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.section-nav .nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(10, 102, 194, 0.5);
  display: block;
  transition: all 0.3s ease;
  position: relative;
}

.section-nav .nav-dot:hover,
.section-nav .nav-dot.active {
  background: #0a66c2;
  border-color: #0a66c2;
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(10, 102, 194, 0.5);
}

.section-nav .nav-dot::after {
  content: attr(title);
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.section-nav .nav-dot:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, rgba(10, 102, 194, 0.9) 0%, rgba(0, 115, 230, 0.9) 100%);
  backdrop-filter: blur(15px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 
    0 8px 25px rgba(10, 102, 194, 0.3),
    0 4px 15px rgba(10, 102, 194, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(0, 115, 230, 0.95) 0%, rgba(10, 102, 194, 0.95) 100%);
  box-shadow: 
    0 15px 35px rgba(10, 102, 194, 0.4),
    0 8px 20px rgba(10, 102, 194, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.back-to-top:active {
  transform: translateY(-2px);
}

.back-to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.back-to-top:hover::before {
  left: 100%;
}

/* Responsive adjustments for interactive elements */
@media (max-width: 1024px) {
  .section-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
  
  .scroll-progress {
    height: 3px;
  }
}

/* =============================== Responsive Utilities =============================== */

/* Common responsive patterns */
@media (max-width: 1024px) {
  /* Two-column layouts become single column */
  .two-column-grid,
  .split-grid,
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Card grids adjust to 2 columns */
  .card-grid,
  .service-grid,
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
  }
  
  /* Reduce padding on sections */
  .section-padding {
    padding: 3rem 1rem;
  }
  
  /* Adjust font sizes */
  .large-heading {
    font-size: 2.5rem;
  }
  
  .medium-heading {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  /* All grids become single column */
  .responsive-grid,
  .card-grid,
  .service-grid,
  .package-grid,
  .addon-grid,
  .consulting-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
  }
  
  /* Reduce section padding further */
  .section-padding {
    padding: 2rem 1rem;
  }
  
  /* Adjust font sizes for mobile */
  .large-heading {
    font-size: 2rem;
  }
  
  .medium-heading {
    font-size: 1.8rem;
  }
  
  .small-heading {
    font-size: 1.5rem;
  }
  
  /* Stack content vertically */
  .flex-stack {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Center text on mobile */
  .mobile-center {
    text-align: center;
  }
}

/* =============================== Enhanced Grids =============================== */
.stats-grid,
.service-grid,
.addon-grid,
.consulting-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  text-align: center;
}

/* Responsive grid adjustments */
@media (max-width: 1024px) {
  .stats-grid,
  .service-grid,
  .addon-grid,
  .consulting-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .stats-grid,
  .service-grid,
  .addon-grid,
  .consulting-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* =============================== Enhanced Cards =============================== */
.stat-card,
.addon-card,
.consulting-card,
.service-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #e6eaf0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before,
.addon-card::before,
.consulting-card::before,
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0a66c2, #0073e6);
}

.stat-card:hover,
.addon-card:hover,
.consulting-card:hover,
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: #0a66c2;
}

.stat-card i,
.addon-card i,
.consulting-card i,
.service-card i {
  font-size: 2.5rem;
  color: #0a66c2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #eef4fb 0%, #dbeafe 100%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.stat-card:hover i,
.addon-card:hover i,
.consulting-card:hover i,
.service-card:hover i {
  transform: scale(1.1);
  background: linear-gradient(135deg, #0a66c2 0%, #0073e6 100%);
  color: white;
}
