/* -----------------------------------------------------
   CSS RESET & BASE STYLES (Normalize + Reset)
----------------------------------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #101929;
  color: #F5F5F5;
  /* Futuristic gradient background (solid fallback first) */
  background-color: #101929;
  /* For low-end clients */
  background-image: linear-gradient(135deg, #143964 0%, #101929 70%);
  min-height: 100vh;
  font-size: 16px;
}
img, picture, video {
  max-width: 100%;
  display: block;
}
a {
  color: #FCB900;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #fff200;
  outline: none;
}
ul, ol {
  list-style: none;
}

/* -----------------------------------------
   TYPOGRAPHY (Modern & Hierarchy)
----------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #FCB900;
  font-weight: 700;
  letter-spacing: 0.03em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p {
  margin-bottom: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #F5F5F5;
  font-size: 1rem;
}
strong { color: #FCB900; font-weight: 700; }
.tagline {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #48ECFF;
  margin-bottom: 18px;
}

/* -----------------------------------------
   UTILITY CONTAINERS & SPACING
----------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #182746;
  border-radius: 18px;
  box-shadow: 0 8px 24px 0 rgba(20,57,100,0.15);
  padding: 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 32px 0 #1FC9F5;
  border-color: #1FC9F5;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F5F5F5;
  color: #143964;
  border-radius: 15px;
  box-shadow: 0 4px 20px 0 rgba(22,250,255,0.09);
  margin-bottom: 28px;
  margin-top: 30px;
  font-size: 1.05rem;
  font-style: italic;
  position: relative;
}
.testimonial-card p {
  color: #143964;
}
.testimonial-card strong {
  color: #143964;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 12px;
}

/* -----------------------------------------
   HEADER & NAVIGATION
----------------------------------------- */
header {
  background: #143964;
  box-shadow: 0 4px 12px rgba(20,57,100,0.14);
  position: sticky;
  top: 0;
  z-index: 8800;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
header img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  color: #F5F5F5;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.16s;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  margin: 0 auto;
  background: #1FC9F5;
  border-radius: 2px;
  transition: width 0.25s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #1FC9F5;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 80%;
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  padding: 13px 34px;
  border-radius: 28px;
  text-align: center;
  border: none;
  outline: none;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
  cursor: pointer;
  margin-left: 16px;
  box-shadow: 0 2px 24px 0 rgba(31,201,245,0.09);
}
.btn-primary {
  background: linear-gradient(90deg, #1FC9F5 0%, #143964 100%);
  color: #fff;
  border: 2px solid #1FC9F5;
  text-shadow: 0 0 8px #48ECFF55;
}
.btn-primary:hover, .btn-primary:focus {
  background: #1FC9F5;
  color: #143964;
  box-shadow: 0 0 18px 0 #48ECFF77;
}
.btn-secondary {
  background: transparent;
  color: #1FC9F5;
  border: 2px solid #1FC9F5;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #1FC9F5;
  color: #143964;
}
.mobile-menu-toggle {
  background: transparent;
  border: none;
  color: #FCB900;
  font-size: 2.05rem;
  display: none;
  cursor: pointer;
  z-index: 9001;
  margin-left: 8px;
  transition: color 0.2s, transform 0.18s;
  line-height: 1;
}
.mobile-menu-toggle:hover {
  color: #1FC9F5;
  transform: scale(1.14);
}

/* -----------------------------------------
   MOBILE MENU & OVERLAY
----------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 340px;
  max-width: 92vw;
  background: #101929;
  box-shadow: -3px 0 28px 0 rgba(31,201,245,0.19);
  padding: 32px 20px 20px 30px;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #FCB900;
  font-size: 2.1rem;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 10px;
  transition: color 0.16s, transform 0.1s;
  line-height: 1;
}
.mobile-menu-close:hover {
  color: #1FC9F5;
  transform: scale(1.12);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav a {
  color: #F5F5F5;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  padding: 12px 0 10px 0;
  border-bottom: 1px solid #223D63;
  transition: color 0.17s, background 0.1s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #1FC9F5;
  background: rgba(252,185,0,0.05);
}

/* -----------------------------------------
   SECTIONS, HERO, AND FEATURE BLOCKS
----------------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.feature-grid, .services-grid, .case-study-preview, .case-study-carousel {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-top: 10px;
}
.feature-grid > div, .case-study-preview > div {
  flex: 1 1 260px;
  min-width: 235px;
  background: #172949;
  border-radius: 14px;
  box-shadow: 0 4px 30px 0 rgba(22,250,255,0.10);
  padding: 30px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.17s, border-color 0.17s;
  border: 1px solid #17315c;
  position: relative;
}
.feature-grid > div img, .case-study-preview > div img {
  margin-bottom: 18px;
  width: 38px;
}
.feature-grid > div h3, .case-study-preview > div h3 {
  color: #1FC9F5;
  margin-bottom: 9px;
}
.services-grid > div {
  flex: 1 1 320px;
  min-width: 280px;
  background: #182746;
  border-radius: 16px;
  box-shadow: 0 6px 24px 0 rgba(31,201,245,0.08);
  padding: 32px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border: 1.5px solid #17315c;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  margin-bottom: 20px;
}
.services-grid > div:hover {
  border-color: #1FC9F5;
  box-shadow: 0 6px 36px 0 #1fc9f533;
}
.services-grid img {
  width: 40px;
  margin-bottom: 14px;
}
.price {
  color: #FCB900;
  font-size: 1.09rem;
  font-weight: 600;
  margin-top: 6px;
}
.stats-list, .quick-results-overview ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-top: 18px;
  margin-bottom: 20px;
}
.stats-list li, .quick-results-overview ul li {
  background: #172949;
  color: #F5F5F5;
  border-radius: 12px;
  font-size: 1.03rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 14px 24px;
  min-width: 210px;
  margin-bottom: 8px;
}

/* -----------------------------------------
   BLOG LIST & NEWSLETTER SIGNUP
----------------------------------------- */
.blog-post-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 8px;
}
.blog-post-list li {
  background: #172949;
  border-radius: 12px;
  box-shadow: 0 4px 18px 0 rgba(31,201,245,0.09);
  padding: 28px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.category-tag {
  display: inline-block;
  background: #1FC9F5;
  color: #101929;
  border-radius: 8px;
  padding: 3px 11px;
  font-size: 0.88rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.newsletter-signup {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  background: #172949;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 #1fc9f522;
  padding: 32px 20px;
  margin-top: 18px;
}
.newsletter-signup p {
  color: #F5F5F5;
  font-size: 1.06rem;
}

/* -----------------------------------------
   FOOTER & SOCIALS
----------------------------------------- */
footer {
  background: #101929;
  color: #F5F5F5;
  font-size: 1rem;
  padding: 0 0 0 0;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 55px 0 24px 0;
  border-bottom: 1.5px solid #17315c;
}
.footer-flex > div {
  min-width: 210px;
  flex: 1 1 220px;
}
.footer-flex img {
  height: 42px;
  margin-bottom: 14px;
}
.footer-social {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
}
.footer-social a img {
  height: 33px;
  width: 33px;
  opacity: 0.84;
  filter: drop-shadow(0px 2px 8px #1fc9f544);
  transition: opacity 0.17s;
}
.footer-social a:hover img {
  opacity: 1.0;
}
.footer-contact-short p {
  color: #F5F5F5;
  font-size: 1rem;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-nav a {
  color: #F5F5F5;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-nav a:hover {
  color: #1FC9F5;
}
.footer-bottom {
  padding: 18px 0 8px 0;
  text-align: center;
  color: #1FC9F5;
  font-size: 0.97rem;
  letter-spacing: 0.03em;
}

/* -----------------------------------------
   AUXILIARY & GENERAL UTILITY
----------------------------------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 12px;
}
.services-list li {
  padding-left: 18px;
  position: relative;
  color: #F5F5F5;
}
.services-list li:before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FCB900;
  position: absolute;
  left: 0;
  top: 0.55em;
}

/* --- For quick results/benefit lists on homepage --- */
.quick-results-overview ul {
  padding: 0;
  margin: 0 0 16px 0;
}

.contact-short-info {
  color: #1FC9F5;
  margin-top: 16px;
  font-size: 1.04rem;
}
.contact-short-info img {
  width: 22px;
  vertical-align: middle;
  margin-right: 5px;
}

/* -----------------------------------------
   BUTTON VARIANTS
----------------------------------------- */
.btn-primary:active, .btn-secondary:active {
  filter: brightness(0.92) saturate(1.15);
}
button:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible {
  outline: 2px solid #1FC9F5;
  outline-offset: 2px;
}

/* -----------------------------------------
   COOKIE CONSENT BANNER & MODAL
----------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #182746;
  color: #F5F5F5;
  z-index: 11000;
  padding: 19px 24px 17px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 -2px 24px 0 #1fc9f544;
  font-size: 1rem;
  gap: 15px;
  animation: cookieBannerIn 0.5s;
}
@keyframes cookieBannerIn {
  0% { transform: translateY(120%); opacity: 0.7; }
  98% { opacity: 1; }
  100% { transform: translateY(0); }
}
.cookie-banner p {
  margin: 0;
  color: #F5F5F5;
  max-width: 540px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner .btn-cookie {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 8px;
  font-size: 1rem;
  padding: 10px 18px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: #1FC9F5;
  color: #143964;
  transition: background 0.17s, color 0.17s;
  margin-right: 0;
}
.cookie-banner .btn-cookie:hover {
  background: #FCB900;
  color: #101929;
}
.cookie-banner .btn-cookie-secondary {
  background: #172949;
  color: #1FC9F5;
  border: 1.5px solid #1FC9F5;
}
.cookie-banner .btn-cookie-secondary:hover {
  background: #1FC9F5;
  color: #101929;
}
/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 12000;
  background: rgba(20, 57, 100, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn 0.4s;
}
@keyframes cookieModalIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-dialog {
  background: #182746;
  color: #F5F5F5;
  border-radius: 22px;
  max-width: 420px;
  min-width: 280px;
  width: 90%;
  padding: 36px 30px 28px 30px;
  box-shadow: 0 8px 34px 0 #1fc9f544;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  position: relative;
}
.cookie-modal-dialog h3 {
  color: #1FC9F5;
  font-size: 1.22rem;
}
.cookie-modal-dialog label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 1.12rem;
}
.cookie-modal-dialog input[type="checkbox"] {
  accent-color: #1FC9F5;
}
.cookie-modal-dialog .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 13px;
  width: 100%;
  margin-top: 17px;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #FCB900;
  cursor: pointer;
  transition: color 0.17s, transform 0.12s;
}
.cookie-modal-close:hover {
  color: #1FC9F5;
  transform: scale(1.09);
}
/* --- Accessibility helpers --- */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition: none !important;
    animation-duration: 0.01ms !important;
  }
}

/* -----------------------------------------
   RESPONSIVE DESIGN (Mobile-first)
----------------------------------------- */
@media (max-width: 1020px) {
  .container { max-width: 98vw; }
  .footer-flex { gap: 20px; }
}
@media (max-width: 920px) {
  .main-nav {
    gap: 14px;
    font-size: 0.95rem;
  }
  .footer-flex {
    flex-wrap: wrap;
    gap: 18px;
  }
  .feature-grid, .services-grid, .content-grid, .case-study-preview, .case-study-carousel {
    gap: 20px;
  }
  .stats-list { gap: 14px 18px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .header-flex {
    flex-wrap: wrap;
    min-height: 55px;
    gap: 9px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .services-grid, .content-grid, .case-study-preview, .case-study-carousel {
    flex-direction: column;
    gap: 28px;
  }
  .newsletter-signup {
    flex-direction: column;
    gap: 20px;
  }
  .footer-flex {
    flex-direction: column;
    align-items: stretch;
  }
  .content-wrapper {
    gap: 14px;
  }
  .section {
    margin-bottom: 38px;
    padding: 26px 6px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 14px;
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 8px;
  }
  .feature-grid > div,
  .services-grid > div,
  .case-study-preview > div,
  .case-study-carousel > div {
    min-width: 0;
    padding: 18px 10px 14px 14px;
    font-size: 0.97rem;
  }
  .blog-post-list li {
    padding: 16px 12px 13px 14px;
  }
  .stats-list li, .quick-results-overview ul li {
    min-width: 80px;
    font-size: 0.99rem;
    padding: 9px 8px;
  }
  .newsletter-signup {
    padding: 14px 8px;
  }
  .cookie-modal-dialog {
    padding: 18px 8px 18px 8px;
    max-width: 99vw;
    min-width: 0;
  }
}
@media (max-width: 400px) {
  .footer-flex > div, .footer-nav {
    min-width: 0;
  }
  .footer-nav a {
    font-size: 0.91rem;
  }
}

/* -----------------------------------------
   SPECIALS
----------------------------------------- */
/* Mark accented, futuristic neon borders for cards */
.services-grid > div:hover, .feature-grid > div:hover, .card:hover {
  box-shadow: 0 4px 36px 0 #1FC9F5;
  border-color: #1FC9F5;
}
.section {
  position: relative;
  background: rgba(20,57,100,0.02);
  border-radius: 20px;
  box-shadow: 0 2px 18px 0 #1fc9f52a;
}

/* Visual cues for CTA */
.cta-glow {
  box-shadow: 0 0 22px 6px #1FC9F5;
  animation: pulse 1.5s infinite alternate;
}
@keyframes pulse {
  0% { box-shadow: 0 0 22px 4px #1FC9F588; }
  100% { box-shadow: 0 0 44px 10px #1FC9F5; }
}

::selection {
  background: #1FC9F5;
  color: #143964;
}

/* -------------------------------
   Misc Utility
------------------------------- */
.muted {
  color: #8FA9CA;
  font-size: 0.97rem;
}
/* Hide visually, but accessible to screen readers */
.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;
}
/* Error/alert for accessibility */
[aria-live="polite"] {
  color: #FCB900;
  font-size: 1.11rem;
  background: #143964;
  padding: 3px 10px;
  border-radius: 6px;
}
