/* =====================
   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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #232D3C;
  color: #F9F8F4;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #232D3C;
  min-height: 100vh;
  color: #F9F8F4;
  position: relative;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

ul, ol {
  list-style: none;
}
a {
  color: #35A7FF;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #fff;
  text-decoration: underline;
}
strong, b {
  font-weight: 700;
}
hr {
  border: none;
  border-top: 1px solid #37526f;
  margin: 32px 0;
}

/* =========================================
   FONT IMPORTS
   ========================================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400|Open+Sans:400,600,700&display=swap');

/* ================================
   BRAND COLOR VARIABLES & Fallbacks
   ================================ */
:root {
  --primary: #232D3C;
  --secondary: #35A7FF;
  --accent: #F9F8F4;
  --neon: #35A7FF;
  --card-bg: #232D3C;
  --card-bg-contrast: #293748;
  --shadow: 0 2px 24px 0 rgba(35,167,255,0.10);
  --radius: 18px;
  --hover: #1e2432;
}

/* ================
   TYPOGRAPHY
   ================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 20px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.18;
}
h3 {
  font-size: 1.33rem;
  margin-bottom: 12px;
  line-height: 1.25;
  color: #35A7FF;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, ul, ol, li, blockquote {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #e8eef7;
  margin-bottom: 16px;
}
.subheadline {
  display:block;
  font-size: 1.25rem;
  color: #AEE5FF;
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: 0.03em;
}

blockquote {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.15rem;
  color: #153350;
  font-style: italic;
  background: #F9F8F4;
  border-left: 4px solid #35A7FF;
  padding: 20px 24px;
  margin-bottom: 12px;
  border-radius: 8px;
}

/* ===============================
   UTILITY CLASSES & MAIN LAYOUT
   =============================== */
.container {
  width: 100%;
  max-width: 1160px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 880px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--radius);
}
.cta {
  margin: 0 auto 60px auto;
  padding: 40px 20px;
  text-align: center;
  background: #17202b;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =================================
   HEADER & NAVIGATION
   ================================= */
header {
  width: 100%;
  background: #212A36;
  box-shadow: 0 1px 0 #283041;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  color: #F9F8F4;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  position: relative;
  padding: 8px 0;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #35A7FF;
}
.main-nav .btn-primary {
  margin-left: 18px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #35A7FF;
  font-size: 2.1rem;
  cursor: pointer;
  margin-left: 16px;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
  background: linear-gradient(130deg, #232D3C 75%, #2e67a5 100%);
  border-radius: var(--radius);
  padding: 54px 0 54px 0;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.hero h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 8px;
}

/* ====================================
   FEATURES, CARDS, GRIDS
   ==================================== */
.feature-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.feature {
  background: #293748;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 260px;
  min-width: 220px;
  padding: 28px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 6px #35A7FF80);
}
.feature h3 {
  color: #35A7FF;
  font-size: 1.32rem;
}
.feature p {
  color: #E3E9F2;
  font-size: 1rem;
}

/* General Card Container Styles (for others) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #293748;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 24px;
  transition: box-shadow 0.16s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 4px 28px #35A7FF60;
  transform: translateY(-4px) scale(1.015);
}

.concept-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.concept {
  flex: 1 1 280px;
  background: #232D3C;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px 24px 22px;
  margin-bottom: 20px;
}
.case-detail {
  background: #293748;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  margin-bottom: 20px;
}
/* For other card layouts (e.g., event-list, team-grid) */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.team-member {
  flex: 1 1 240px;
  background: #232D3C;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  margin-bottom: 20px;
  text-align: left;
}
.team-member h3 {
  color: #35A7FF;
  font-size: 1.19rem;
}

/* ====================================
   CONTENT GRIDS & FLEX LAYOUTS
   ==================================== */
.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;
}

/* ================
   TESTIMONIAL CARDS
   ================ */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F9F8F4;
  color: #232D3C;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  font-size: 1rem;
  flex-wrap: wrap;
  min-width: 0;
}
.testimonial-card blockquote {
  background: none;
  border: none;
  color: #153350;
  font-size: 1.12rem;
  margin-bottom: 0;
  padding: 0;
}
.testimonial-card p {
  color: #1D2632;
  margin: 0;
}
.testimonial-card strong {
  font-weight: bold;
}

/* ================
   BUTTONS & LINKS
   ================ */
.btn-primary,
.main-nav .btn-primary {
  background: linear-gradient(90deg, #35A7FF 70%, #22E3FC 100%);
  color: #232D3C;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 36px;
  box-shadow: 0 4px 26px #35A7FF55;
  padding: 0.78em 2.1em;
  font-size: 1.13rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.19s, box-shadow 0.19s;
  position: relative;
  z-index: 1;
  outline: none;
  display: inline-block;
  margin-top: 10px;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: #F9F8F4;
  color: #232D3C;
  transform: translateY(-2px) scale(1.045);
  box-shadow: 0 6px 32px #13586F60;
}

/* ================
   FORMS (if used)
   ================ */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 8px;
  outline: none;
  border: none;
  padding: 10px 15px;
  background: #232D3C;
  color: #F9F8F4;
  margin-bottom: 13px;
  box-shadow: 0 1px 5px #22273630;
  transition: border-color 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus {
  border: 2px solid #35A7FF;
  background: #19202A;
}
label {
  margin-bottom: 6px;
  display: block;
  font-weight: 600;
}

/* ====================
   TABLES (if any)
   ==================== */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 22px;
}
th, td {
  padding: 12px 12px;
  border-bottom: 1px solid #283041;
}
th {
  background: #232D3C;
  color: #35A7FF;
}

/* =====================
   CONTACT DETAILS
   ===================== */
.contact-details ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}
.contact-details li {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  color: #F9F8F4;
  font-size: 1rem;
}
.contact-details img {
  width: 28px;
  height: 28px;
  display: inline-block;
  margin-right: 7px;
  filter: drop-shadow(0 0 4px #35A7FF55);
}
.contact-details a {
  color: #35A7FF;
  word-break: break-all;
  transition: color 0.16s;
}
.contact-details a:hover {
  color: #fff;
}

/* =================================
   FOOTER
   ================================= */
footer {
  background: #1A212B;
  padding-top: 42px;
  padding-bottom: 18px;
  color: #D7E1F0;
  margin-top: 38px;
  font-size: 1rem;
  width: 100%;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 16px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.footer-brand img {
  width: 56px;
  height: auto;
}
.footer-brand p, .footer-nav a { color: #D7E1F0; }
.footer-brand a {
  color: #35A7FF;
  text-decoration: underline;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
}
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  color: #8EA6C7;
  font-size: 0.99rem;
  margin-top: 18px;
  opacity: 0.75;
  letter-spacing: 0.01em;
}

/* ===================
   RESPONSIVE LAYOUTS
   =================== */
@media (max-width: 1024px) {
  .main-nav {
    gap: 17px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .feature-grid,
  .content-grid,
  .team-grid,
  .card-container,
  .concept-list {
    gap: 16px;
  }
}
@media (max-width: 800px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .hero h1 {
    font-size: 1.57rem;
  }
  .feature,
  .concept {
    min-width: 160px;
    padding: 20px 12px 16px 12px;
  }
}
@media (max-width: 768px) {
  .header .container, .footer-top {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .feature-grid,
  .content-grid,
  .team-grid,
  .card-container,
  .concept-list {
    flex-direction: column;
    gap: 18px;
  }
  .section, .cta {
    padding-left: 9px;
    padding-right: 9px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-top {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
 }
@media (max-width: 520px) {
  .hero .container {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  h1 {
    font-size: 1.13rem;
  }
  .feature, .concept, .case-detail, .team-member {
    padding: 12px 8px;
    font-size: 0.97rem;
  }
}

/* ===========================
   MOBILE BURGER MENU STYLING
   =========================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(35, 45, 60, 0.98);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-102vw);
  transition: transform 0.34s cubic-bezier(.8,-0.01,.29,1.01);
  box-shadow: 0 6px 28px #0b182433;
  padding-top: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  transition: transform 0.32s cubic-bezier(.5,.06,.32,1.0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 20px 0 0;
  font-size: 2.3rem;
  background: none;
  color: #35A7FF;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: color 0.22s, transform 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #22E3FC;
  transform: scale(1.09);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 42px;
  align-items: flex-start;
  padding-left: 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.27rem;
  font-weight: 600;
  color: #F9F8F4;
  padding: 10px 0;
  border-radius: 6px;
  width: 94%;
  transition: background 0.18s, color 0.19s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #35A7FF;
  color: #232D3C;
}
.mobile-nav .btn-primary {
  margin-left: 0;
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none!important;
  }
  .mobile-menu-toggle {
    display: none!important;
  }
}

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #293748;
  color: #F9F8F4;
  z-index: 250;
  padding: 20px 18px 20px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -4px 24px #1e222f60;
  font-size: 1rem;
  gap: 20px;
  animation: slideInBanner 0.58s cubic-bezier(0.79,-0.08,0.35, 1.06);
}
@keyframes slideInBanner {
  0% { transform: translateY(160px); opacity:0; }
  85% { transform: translateY(-5px); opacity:1; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner button {
  margin-left: 10px;
}
.cookie-banner .btn-consent {
  background: #35A7FF;
  color: #232D3C;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 1rem;
  margin: 0 4px;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, transform 0.17s;
}
.cookie-banner .btn-consent:hover, .cookie-banner .btn-consent:focus {
  background: #22E3FC;
  color: #232D3C;
  transform: scale(1.05);
}
.cookie-banner .btn-settings {
  background: none;
  border: 1px solid #35A7FF;
  color: #35A7FF;
  border-radius: 24px;
  padding: 8px 18px;
  margin: 0 4px;
  font-weight: 600;
  transition: background 0.16s, color 0.16s, border 0.16s;
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: #35A7FF;
  color: #232D3C;
  border: 1px solid #35A7FF;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 260;
  left:0; top:0; right:0; bottom:0;
  width:100vw; height:100vh;
  background: rgba(35,45,60,0.87);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeinModal 0.2s;
}
.cookie-modal-overlay.active {
  display: flex;
}
@keyframes fadeinModal {
  0%{opacity: 0;} 100%{opacity: 1;}
}
.cookie-modal {
  background: #232D3C;
  border-radius: var(--radius);
  max-width: 400px;
  width: 94vw;
  box-shadow: 0 8px 40px #35A7FF10;
  padding: 38px 24px 32px 24px;
  text-align: left;
  color: #F9F8F4;
  position: relative;
}
.cookie-modal h2 {
  color: #35A7FF;
  font-size: 1.19rem;
  margin-bottom: 20px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 12px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #35A7FF;
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.67rem;
  color: #35A7FF;
  cursor: pointer;
  transition: color 0.12s, transform 0.13s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: #22E3FC;
  transform: scale(1.09);
}

/* ===============
   SCROLLBAR
   =============== */
::-webkit-scrollbar { width: 9px; background: #232D3C; }
::-webkit-scrollbar-thumb { background: #35618a; border-radius: 7px; }
::-webkit-scrollbar-thumb:hover { background: #35A7FF; }

/* ==================
   MICRO-ANIMATIONS
   ================== */
.card,
.feature,
.concept,
.case-detail,
.team-member {
  transition: box-shadow 0.17s, transform 0.18s;
}
.card:hover, .feature:hover, .concept:hover, .case-detail:hover, .team-member:hover {
  box-shadow: 0 7px 24px #35A7FF40;
  transform: scale(1.025);
  z-index: 1;
}
.btn-primary:active {
  transform: scale(0.96);
}

/* ==========
   HR Styling
   ========== */
hr {
  border: none;
  border-top: 1px solid #436487;
  margin: 36px 0;
}

/* ===================
   VISUAL EFFECTS
   =================== */
.feature:hover img,
.card:hover img,
.concept:hover img,
.team-member:hover img {
  filter: drop-shadow(0 0 16px #35A7FFcc);
  transition: filter 0.19s;
}

/* ================
   VISUAL HIERARCHY
   ================ */
ul, ol {
  margin-left: 20px;
  margin-bottom: 16px;
  color: #CFDCF4;
  font-size: 1rem;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 10px;
  position: relative;
}
ul li:before {
  content: "\2022 ";
  color: #35A7FF;
  font-size: 1.4em;
  margin-left: -18px;
  vertical-align: middle;
  line-height: 1.05;
}

/* ================
   Misc Spacing
   ================ */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 16px;
}
p, ul, ol {
  margin-bottom: 16px;
}
.section, .card, .case-detail, .feature, .concept {
  margin-bottom: 24px;
}

/* Hide visually unnecessary outlines in normal state */
a, button, .btn-primary {
  outline: none;
}
a:focus-visible, .btn-primary:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #35A7FF;
  outline-offset: 1px;
}

/* =========================
   PRINT STYLES
   ========================= */
@media print {
  *, *:before, *:after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  nav, header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}
