/* ===================================================
   CSS RESET & NORMALIZE
   =================================================== */
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,
menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #1c232c;
  color: #F7F9FA;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #61A4BC;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #19e6ff;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}
:focus {
  outline: 2px solid #61A4BC;
  outline-offset: 2px;
}

/* =========================
    BRAND/COLOR VARIABLES
   ========================= */
:root {
  --brand-primary: #25303B;
  --brand-secondary: #61A4BC;
  --brand-accent: #F7F9FA;
  --brand-bg-dark: #1c232c;
  --brand-ghost: #181e25;
  --brand-neon: #19e6ff;
  --brand-danger: #ff265a;
  --brand-success: #51fc9a;
  --shadow-md: 0 4px 24px 0 rgba(30, 228, 240, 0.08), 0 1.5px 4px 0 rgba(37, 48, 59, 0.10);
  --radius-base: 14px;
  --radius-lg: 24px;
  --transition: all 0.22s cubic-bezier(.5,.2,.1,1);
}

/* ===================================
    TYPOGRAPHY   (with Montserrat)
   =================================== */
h1, h2, h3, h4, h5, h6, .subtitle {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  letter-spacing: -0.5px;
  color: var(--brand-accent);
}
h1 { font-size: 2.7rem; font-weight: 800; margin-bottom: 12px; line-height: 1.1; }
h2 { font-size: 2.1rem; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 8px; }
h4, h5, h6 { font-weight: 500; }
.subtitle {
  font-size: 1.21rem;
  font-weight: 500;
  color: var(--brand-secondary);
  margin-bottom: 18px;
}
p {
  font-size: 1.06rem;
  margin-bottom: 16px;
  color: #f4fcfe;
}
strong { color: var(--brand-secondary); font-weight: 700; }

/* ===================================
    GENERAL LAYOUT & CONTAINERS
   =================================== */
.container {
  width: 100%;
  max-width: 1090px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  background: rgba(30, 38, 53, 0.93);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px 26px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cta-strip { 
  background: linear-gradient(90deg, #222f41 0%, #22334c 100%);
  border: 1.5px solid var(--brand-secondary);
  box-shadow: 0 0 16px 2px #19e6ff20;
  padding: 36px 26px;
  display: flex;
  flex-direction: column; 
  align-items: center;
  text-align: center;
  gap: 18px;
}
main {
  margin-top: 110px;
  margin-bottom: 32px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

/* =========================
   NAVIGATION (DESKTOP & MOBILE)
   ========================= */
header {
  width: 100%;
  padding: 0;
  position: fixed;
  top: 0;
  background: linear-gradient(90deg, #181e25 65%, #222f41 100%);
  z-index: 20;
  box-shadow: 0 3px 18px 0 #1cc0c815;
}
nav {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 10px 0;
  max-width: 1240px;
  margin: 0 auto;
}
nav > a img {
  height: 40px;
  margin-right: 35px;
  filter: drop-shadow(0 0 2px #19e6ff50);
}
nav ul {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-grow: 1;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
}
nav ul li a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: var(--brand-accent);
  font-size: 1.04rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
}
nav ul li a:hover, nav ul li a:focus {
  background: #242d42;
  color: #19e6ff;
}
.cta-primary {
  background: linear-gradient(90deg, #19e6ff 0%, #51fdc9 100%);
  color: #181e25;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-base);
  padding: 10px 28px;
  margin-left: 32px;
  box-shadow: 0 2px 12px 0 #17f7fc35;
  transition: var(--transition), box-shadow 0.2s;
  letter-spacing: 0.5px;
  position: relative;
}
.cta-primary:hover, .cta-primary:focus {
  background: #19e6ff;
  box-shadow: 0 2px 24px 0 #61A4BC80, 0 0 6px #51fdc950;
  color: #181e25;
}
.cta-secondary {
  background: transparent;
  color: #19e6ff;
  border: 2px solid #19e6ff;
  border-radius: var(--radius-base);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 8px 24px;
  margin-top: 8px;
  transition: var(--transition), box-shadow 0.2s;
  letter-spacing: 0.4px;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #19e6ff1e;
  color: #181e25;
  box-shadow: 0 2px 24px 0 #19e6ff85;
}

/* =====================
   MOBILE MENU OVERLAY
   ===================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 31;
  background: #181e25;
  color: #19e6ff;
  box-shadow: 0 2px 12px #19e6ff33;
  border-radius: 50%;
  font-size: 2rem;
  padding: 10px 16px;
  transition: var(--transition), background 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #19e6ff;
  color: #181e25;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: linear-gradient(115deg, #232d38 65%, #25303B 100%);
  z-index: 40;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.6,1.25,.5,1);
  box-shadow: 2px 0 48px #19e6ff22;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 26px 22px 12px auto;
  background: #181e25;
  color: #19e6ff;
  border-radius: 50%;
  box-shadow: 0 2px 12px #19e6ff33;
  font-size: 2.2rem;
  line-height: 1;
  padding: 9px 15px;
  transition: var(--transition), background 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #19e6ff;
  color: #181e25;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 20px 38px;
}
.mobile-nav a {
  color: #F7F9FA;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  padding: 10px 6px;
  border-radius: 8px;
  width: 100%;
  transition: background 0.16s, color 0.18s;
  margin: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #19e6ff;
  background: #25303b;
}

/* ===============
   MAIN SECTIONS
   =============== */
.features-grid,
.services-summary-cards,
.team-cards,
.articles-preview,
.faq-list,
.cases,
.projects-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 10px;
}
.features-grid > div,
.services-summary-cards > div,
.team-cards > div,
.articles-preview > div,
.faq-list > div,
.cases > div,
.projects-overview > div {
  background: #1e2535;
  border-radius: var(--radius-base);
  box-shadow: 0 2px 18px #19e6ff14, 0 1.5px 4px #1cc0c817;
  padding: 25px 20px 20px 20px;
  flex: 1 1 240px;
  min-width: 240px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 1.5px solid #232d3822;
  transition: box-shadow 0.15s;
}
.features-grid > div:hover,
.services-summary-cards > div:hover,
.team-cards > div:hover,
.articles-preview > div:hover,
.faq-list > div:hover,
.cases > div:hover,
.projects-overview > div:hover {
  box-shadow: 0 3px 22px 1px #19e6ff38;
}
.features-grid img, .services-summary-cards img {
  height: 46px;
  margin-bottom: 10px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #222f41;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-md);
  padding: 21px 18px;
  transition: box-shadow 0.19s;
}
.card:hover {
  box-shadow: 0 3px 27px 0 #19e6ff37;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #f7f9fa;
  color: #25303B;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 16px 1px #19e6ff15;
  padding: 20px;
  font-size: 1.03rem;
  position: relative;
  margin-bottom: 20px;
  min-width: 270px;
  max-width: 360px;
  border-left: 6px solid #19e6ff;
  z-index: 1;
  transition: transform 0.22s, box-shadow 0.13s;
}
.testimonial-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 8px 36px #19e6ff35;
}
.testimonial-card p {
  color: #24313e;
  font-style: italic;
}
.testimonial-card span {
  align-self: flex-start;
  font-size: 1.03rem;
}
.testimonial-card img {
  height: 22px;
  margin: 2px 2px 0 0;
  display: inline-block;
}

/* Mini FAQ for clarity */
.faq-list > div {
  border-left: 4px solid #19e6ff;
  margin-bottom: 20px;
}

/* =====================
    FOOTER
   ===================== */
footer {
  width: 100%;
  background: linear-gradient(90deg, #181e25 70%, #25303b 100%);
  padding: 38px 0 30px 0;
  color: #8dbcce;
  margin-top: 18px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
}
.footer-nav a {
  color: #61A4BC;
  font-weight: 500;
  font-size: 0.98rem;
}
.footer-brand {
  text-align: center;
  color: #a6cae8;
  font-size: 1.02rem;
  line-height: 1.6;
}
.footer-brand strong {
  color: #19e6ff;
}
.footer-brand a {
  color: #61A4BC;
  text-decoration: underline dotted;
}

/* =====================================
   COOKIE BANNER & PREFERENCES MODAL
   ===================================== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: #222f41;
  color: #F7F9FA;
  box-shadow: 0 -4px 36px #19e6ff35, 0 -1px 9px #181e2510;
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  width: 98vw;
  max-width: 540px;
  border-radius: 20px 20px 0 0;
  z-index: 60;
  animation: cookieBannerIn 0.5s cubic-bezier(.6,1.25,.5,1);
}
@keyframes cookieBannerIn { from { transform: translateY(120%); opacity:0;} to { transform: translateY(0) translateX(-50%); opacity:1; } }
.cookie-banner p { color: #F7F9FA; font-size: 1rem; margin-bottom: 7px; }
.cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-btns button {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-base);
  border: none;
  padding: 7px 22px;
  margin: 0;
  transition: var(--transition);
}
.cookie-btn-accept {
  background: linear-gradient(90deg, #19e6ff 0%, #51fdc9 100%);
  color: #222f41;
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: #19e6ff;
  color: #181e25;
}
.cookie-btn-reject {
  background: #181e25;
  border: 2px solid #ff265a;
  color: #ff265a;
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: #ff265a;
  color: #fff;
}
.cookie-btn-settings {
  background: #232d38;
  border: 2px solid #61A4BC;
  color: #61A4BC;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #61A4BC;
  color: #181e25;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(25, 40, 45, 0.86);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn 0.28s cubic-bezier(.8,1.25,.5,1);
}
@keyframes cookieModalIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal-content {
  background: #222f41;
  color: #F7F9FA;
  border-radius: 20px;
  width: 95vw;
  max-width: 420px;
  padding: 36px 30px 28px 30px;
  box-shadow: 0 4px 40px #19e6ff44;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal-content h2 {
  color: #19e6ff;
  font-size: 1.34rem;
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-toggle input:disabled + label {
  color: #858b97;
  text-decoration: line-through;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
}
.cookie-modal-close {
  margin-left: auto;
  background: #181e25;
  color: #19e6ff;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 8px #19e6ff21;
  transition: var(--transition);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #19e6ff;
  color: #181e25;
}
/* ===============
   MISC Material Touch + Accent
   =============== */
::-webkit-scrollbar {
  width: 10px;
  background: #222f41;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb {
  background: #19e6ff44;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #19e6ff80;
}

/* Headings NEON border left for flavor */
h2, h1.section-title {
  border-left: 6px solid #19e6ff;
  padding-left: 18px;
}

/* ===============
   RESPONSIVE DESIGN
   =============== */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
    padding: 0 4vw;
  }
}
@media (max-width: 900px) {
  .features-grid > div, .services-summary-cards > div, .team-cards > div,
  .articles-preview > div, .faq-list > div, .cases > div, .projects-overview > div {
    min-width: 185px;
    flex: 1 1 185px;
    padding: 18px 10px 16px 14px;
  }
  nav > a img { margin-right: 14px; }
  .cta-primary { margin-left: 15px; }
}
@media (max-width: 768px) {
  nav ul, nav .cta-primary { display: none !important; }
  .mobile-menu-toggle { display: block; }
  nav { justify-content: space-between; padding: 10px 8px; }
  .container { padding: 0 3vw; }
  main { margin-top: 78px; }
  .section { padding: 30px 6px; }
  .content-wrapper, .cta-strip { padding: 25px 10px; }
  .features-grid, .services-summary-cards, .team-cards, .articles-preview, .faq-list, .cases, .projects-overview { gap: 16px; }
  .features-grid > div, .services-summary-cards > div, .team-cards > div, .articles-preview > div, .faq-list > div, .cases > div, .projects-overview > div {
    flex: 1 1 100%;
    min-width: 95%;
    padding: 15px 7px 12px 7px;
  }
  .testimonials { flex-direction: column; gap: 14px; }
  .testimonial-card { max-width: 97vw; min-width: 0; }
  .footer-nav ul { gap: 14px; }
  .content-grid, .text-image-section { flex-direction: column; gap: 18px; }
  .text-image-section { align-items: flex-start; }
}
@media (max-width: 540px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.29rem; padding-left: 8px; border-left-width: 4px; }
  .container { padding: 0 8px; }
  .content-wrapper, .cta-strip { padding: 16px 5px; }
}

/* ===============
   ANIMATIONS/MICRO-INTERACTIONS
   =============== */
.cta-primary, .cta-secondary, .card, .testimonial-card, .content-wrapper, .cookie-banner, .cookie-modal-content {
  transition: var(--transition);
}
.card:hover, .features-grid > div:hover, .services-summary-cards > div:hover, .team-cards > div:hover, .projects-overview > div:hover {
  box-shadow: 0 8px 28px #19e6ff56, 0 0 0 1px #19e6ff11;
}

/* Accessibility Improvement */
nav ul li a:focus, .footer-nav a:focus, .cta-primary:focus, .cta-secondary:focus, .mobile-nav a:focus, .cookie-btns button:focus {
  outline: 2px solid #19e6ff;
  outline-offset: 3px;
}

/* =================
   MISC STATIC UTILS
   ================= */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2px !important; }
.mt-4 { margin-top: 4px !important; }
.mt-8 { margin-top: 8px !important; }
.mb-10 { margin-bottom: 10px !important; }
.text-center { text-align: center !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ===============
   END CSS
   =============== */
