/* ========= 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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #10192e; /* fallback for subtle dark blue tech bg */
  color: #F4E2D8;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 16px;
}

/* ========= BRAND FONTS ========= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  background: linear-gradient(135deg, #163252 35%, #10192e 100%);
}
h1, h2, h3, .display {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.4px;
}

h1 {font-size: 2.5rem; color: #fff;}
h2 {font-size: 2rem; color: #ACC3D6;}
h3 {font-size: 1.25rem; color: #F4E2D8;}
h4, h5, h6 {color: #ACC3D6;}

@media (max-width: 768px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.35rem;}
  h3 {font-size: 1rem;}
}

strong {color: #ACC3D6; font-weight: 700;}

/* ========= LAYOUT & CONTAINERS ========= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(22,50,82,0.88);
  border-radius: 28px;
  box-shadow: 0 4px 18px 0 rgba(22,50,82,0.15);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-section {
  align-items: center;
  text-align: center;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
  }
}

.icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0;
  justify-content: center;
}
.icon-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(16,25,46,0.85);
  border-radius: 16px;
  padding: 16px 24px;
  min-width: 110px;
  box-shadow: 0 2px 8px 0 rgba(10,20,30,0.13);
  transition: box-shadow 0.22s, background 0.22s;
}
.icon-grid > div img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 5px #ACC3D6);
}
.icon-grid > div span {
  color: #F4E2D8;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.icon-grid > div:hover, .icon-grid > div:focus {
  box-shadow: 0 8px 32px rgba(172,195,214,0.20);
  background: #163252;
}

/* ========= CARDS ========= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: rgba(22,50,82,0.92);
  border-radius: 20px;
  box-shadow: 0 6px 24px 0 rgba(22,50,82,0.22);
  transition: box-shadow 0.21s, border 0.21s;
  padding: 24px 24px 20px 24px;
}
.card:hover, .card:focus {
  box-shadow: 0 10px 36px 0 #ACC3D660, 0 2px 10px 0 #10192e99;
  border: 2px solid #ACC3D6;
  z-index: 2;
}

@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #F4E2D8;
  color: #163252;
  padding: 20px;
  border-radius: 18px;
  margin-bottom: 24px;
  box-shadow: 0 2px 14px 0 #16325226;
  transition: box-shadow 0.22s;
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: #163252;
  margin-bottom: 8px;
}
.testimonial-meta {
  color: #163252;
  font-weight: 600;
  font-size: 0.98rem;
}
.testimonial-card:hover {
  box-shadow: 0 10px 32px 0 #ACC3D688;
}

/* ------------------------- */
/* ===== CTA BUTTONS ======= */
a.cta-primary, button.cta-primary, .cta-primary {
  background: #ACC3D6;
  color: #163252;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 30px;
  padding: 14px 32px;
  border: none;
  box-shadow: 0 2px 16px 1px #16325241;
  letter-spacing: 0.05em;
  font-size: 1.08rem;
  outline: none;
  cursor: pointer;
  margin-top: 18px;
  transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.2s;
  display: inline-block;
}
a.cta-primary:hover, button.cta-primary:hover, .cta-primary:focus {
  background: #F4E2D8;
  color: #163252;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px 0 #ACC3D644, 0 1px 4px 0 #16325299;
}

/* ------- SERVICES GRID ------- */
.services-grid, .team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 30px 0 24px 0;
}
.services-grid > div, .team-member {
  flex: 1 0 260px;
  background: #163252;
  color: #F4E2D8;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 #16325222;
  padding: 32px 22px 22px 22px;
  transition: box-shadow 0.2s, background 0.2s, border 0.2s;
}
.services-grid > div:hover, .team-member:hover {
  background: #192d47;
  box-shadow: 0 10px 36px 4px #ACC3D622, 0 2px 10px 0 #10192e55;
  border: 1.5px solid #ACC3D6;
  z-index: 2;
}
.services-grid span {
  font-weight: 600;
  display: block;
  margin: 18px 0 0 0;
  color: #ACC3D6;
  font-size: 0.98rem;
}
.team-member h3 {
  color: #F4E2D8;
  margin-bottom: 8px;
}
@media (max-width: 960px) {
  .services-grid, .team-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .services-grid, .team-grid {
    flex-direction: column;
  }
}

/* ------- NAVIGATION BAR ------- */
header {
  border-bottom: 1.5px solid #192d47;
  background: rgba(16,25,46, 0.98);
  position: sticky;
  top: 0;
  left: 0;
  z-index: 40;
  transition: background 0.25s;
}
header .container {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 0 24px #ACC3D6ee);
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav a {
  color: #ACC3D6;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 24px;
  position: relative;
  font-size: 1.01rem;
  transition: background 0.15s, color 0.15s, box-shadow 0.13s;
}
nav a:not(.cta-primary):hover,
nav a:not(.cta-primary):focus {
  background: #192947;
  color: #F4E2D8;
  box-shadow: 0 2px 14px 0 #0002;
}
nav a.cta-primary {
  margin-left: 10px;
}

@media (max-width: 1024px) {
  header .container {
    gap: 10px;
  }
  nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  nav {
    gap: 7px;
  }
}
@media (max-width: 820px) {
  nav {
    display: none;
  }
}

/* ============= MOBILE MENU ============= */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.0rem;
  color: #ACC3D6;
  position: relative;
  z-index: 52;
  cursor: pointer;
  padding: 7px 16px 7px 7px;
  border-radius: 8px;
  transition: background 0.17s, color 0.17s;
  display: none;
}
@media (max-width: 820px) {
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(16,25,46,0.987);
  z-index: 100;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(0.6, 0.2, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 28px;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #ACC3D6;
  align-self: flex-end;
  margin-right: 22px;
  cursor: pointer;
  padding: 4px 12px 8px 12px;
  border-radius: 8px;
  transition: background 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #16325277;
  color: #F4E2D8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
  margin-top: 24px;
}
.mobile-nav a {
  color: #ACC3D6;
  font-size: 1.1rem;
  font-weight: 600;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 18px 28px;
  margin: 0 0 0 16px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ACC3D6;
  color: #163252;
}
.mobile-nav a.cta-primary {
  background: #ACC3D6;
  color: #163252;
  border-radius: 24px;
  margin: 10px 0 0 12px;
}

@media (max-width: 412px) {
  .mobile-nav a {
    font-size: 1rem;
    padding: 15px 20px;
  }
}

/* =========== MAIN SPACING RULES =========== */
main > section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
main > section:last-child {
  margin-bottom: 0;
}

/* ============= FOOTER ============= */
footer {
  margin-top: 48px;
  padding: 32px 0 16px 0;
  background: #10192e;
  color: #ACC3D6;
  border-top: 2px solid #192d47;
}
.footer-links {
  display: flex;
  gap: 24px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}
.footer-links a {
  color: #ACC3D6;
  font-size: 1rem;
  border-radius: 14px;
  padding: 6px 12px;
  transition: background 0.13s, color 0.13s;
}
.footer-links a:hover, .footer-links a:focus {
  background: #ACC3D6;
  color: #163252;
}
address {
  font-style: normal;
  font-size: 0.98rem;
  color: #F4E2D8;
}

@media (max-width: 680px) {
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  address {
    font-size: 0.93rem;
  }
}

/* ========== LISTS ========== */
ul {
  margin-bottom: 20px;
  margin-left: 18px;
  color: #F4E2D8;
}
ul li {
  margin-bottom: 9px;
  list-style: disc;
  font-size: 1.06rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* ========== FORMS, LINKS ========== */
input, textarea, select {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 10px;
  border: 1.5px solid #ACC3D6;
  background: #192d47;
  color: #F4E2D8;
  padding: 12px 14px;
  font-size: 1rem;
  margin-bottom: 16px;
  width: 100%;
  transition: box-shadow 0.13s, border 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: #ACC3D6;
  box-shadow: 0 0 0 2px #ACC3D6bb;
  outline: none;
}

/* =========== COOKIES BANNER & MODAL =========== */
.cookies-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #163252d8;
  color: #F4E2D8;
  z-index: 800;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 16px 18px;
  box-shadow: 0 -4px 36px 0 #16325244;
  gap: 18px;
  justify-content: space-between;
  animation: cookiesFadeIn 0.52s cubic-bezier(0.61, 0.22, 0.44, 1);
}
@keyframes cookiesFadeIn {
  from {transform: translateY(100%); opacity:0;}
  to {transform: translateY(0); opacity:1;}
}
.cookies-banner p {
  font-size: 1rem;
  color: #F4E2D8;
  flex: 1 1 0;
  margin: 0 14px 0 0;
}
.cookies-banner .cookies-buttons {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  align-items: center;
}
.cookie-btn {
  background: #ACC3D6;
  color: #163252;
  font-weight: 600;
  border: none;
  border-radius: 29px;
  padding: 10px 22px;
  font-size: 1rem;
  margin-left: 6px;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, transform 0.18s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #F4E2D8;
  color: #163252;
  transform: scale(1.05);
}
.cookie-settings-btn {
  background: none;
  color: #ACC3D6;
  border: 1.2px solid #ACC3D6;
  font-weight: 600;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #ACC3D6;
  color: #163252;
}

@media (max-width: 700px) {
  .cookies-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 10px 14px 10px;
  }
  .cookies-banner .cookies-buttons {
    gap: 10px;
  }
  .cookies-banner p{
    font-size: 0.97rem;
  }
}

.cookies-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(16,25,46, 0.89);
  z-index: 1200;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: cookiesModalIn 0.39s cubic-bezier(.3,.9,.18,1.05);
}
@keyframes cookiesModalIn {
  from {transform: scale(0.86); opacity:0;}
  to {transform: scale(1); opacity:1;}
}
.cookies-modal-content {
  background: #163252;
  color: #F4E2D8;
  border-radius: 24px;
  box-shadow: 0 14px 48px 0 #16325299;
  padding: 36px 34px 28px 34px;
  min-width: 340px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookies-modal-title {
  color: #ACC3D6;
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  margin-bottom: 6px;
}
.cookies-modal-close {
  position: absolute;
  top: 18px; right: 22px;
  background: none;
  border: none;
  color: #ACC3D6;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 2px 10px 2px 10px;
  border-radius: 8px;
  transition: background 0.16s;
}
.cookies-modal-close:hover,.cookies-modal-close:focus {
  background: #ACC3D6;
  color: #163252;
}
.cookies-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1rem;
  gap: 11px;
}
.cookies-modal .cookie-category input[type="checkbox"] {
  accent-color: #ACC3D6;
  width: 21px; height: 21px;
}
.cookies-modal .cookie-category.disabled-label {
  color: #ccc;
  font-style: italic;
}
.cookies-modal .modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 15px;
}
.cookies-modal .cookie-desc {
  font-size: 0.99rem;
  color: #F4E2D8;
}
@media (max-width: 480px) {
  .cookies-modal-content {
    padding: 18px 7px 17px 7px;
    min-width: 90vw;
    max-width: 98vw;
  }
  .cookies-modal-title {
    font-size: 1.17rem;
  }
}

/* ========== MICRO-INTERACTIONS & EFFECTS ========== */
.card, .services-grid > div, .team-member, .icon-grid > div {
  transition: box-shadow 0.15s, background 0.15s, border 0.13s, transform 0.13s;
}
.cta-primary, .cookie-btn {
  transition: background 0.17s, color 0.18s, transform 0.16s, box-shadow 0.16s;
}
nav a {
  transition: background 0.1s, color 0.16s, box-shadow 0.13s;
}

/* ========= SCROLLBAR FUTURISTIC ========= */
body::-webkit-scrollbar {
  width: 10px;
  background: #10192e;
}
body::-webkit-scrollbar-thumb {
  background: linear-gradient(120deg, #ACC3D6 10%, #163252 100%);
  border-radius: 8px;
}

/* ========= ANIMATIONS ========= */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.section, main > section, .card, .services-grid > div, .team-member, .icon-grid > div, .testimonial-card {
  animation: fadeInUp 0.74s cubic-bezier(.18,.67,.18,1.05);
}

/* ========= GENERAL SPACING RULES ========= */
.card, .services-grid > div, .team-member {
  margin-bottom: 20px !important;
}
main > section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .services-grid, .team-grid, .content-grid, .icon-grid {
  gap: 24px;
}
.feature-item, .testimonial-card, .text-image-section {
  gap: 20px;
}

/* ========= UTILITY ========= */
.neon {
  text-shadow: 0 0 8px #ACC3D6DD, 0 0 16px #ACC3D633;
}

/* ========== ACCESSIBILITY ========== */
:focus {
  outline: 2px solid #ACC3D6;
  outline-offset: 1px;
}

/* ========= PRINT STYLES ========= */
@media print {
  header, .mobile-menu, .cookies-banner, .cookies-modal, footer {
    display: none !important;
  }
  main, .container, section, .content-wrapper, body {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
}
