/* ===========================
      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 { height: 100%; font-size: 16px; box-sizing: border-box; }
body { min-height: 100vh; font-family: 'Roboto', Arial, sans-serif; background: #21252b; color: #F1F8E9; -webkit-font-smoothing: antialiased; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { border: 0; max-width: 100%; height: auto; vertical-align: middle; }
button, input, select, textarea { font-family: inherit; }
button { outline: none; border: none; background: none; cursor: pointer; }

/* =============================
      BRAND VARIABLES
============================= */
:root {
  --primary: #263238;
  --secondary: #00BCD4;
  --accent: #F1F8E9;
  --bg-dark: #21252b;
  --bg-light: #232830;
  --neon-cyan: #00eaff;
  --neon-green: #39ffba;
  --surface: #24313b;
  --border-radius: 16px;
  --gap-main: 24px;
  --gap-small: 12px;
  --gap-large: 32px;
}

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

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--accent);
  background: linear-gradient(120deg,#21252b 0%,#232830 100%), var(--primary);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  font-weight: 700;
}

h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.4rem; line-height: 1.3; }
h4 { font-size: 1.15rem; }

p, li, dd {
  font-size: 1rem;
  color: #d0e3eb;
  margin-bottom: 12px;
  line-height: 1.7;
}

strong { color: var(--neon-cyan); font-weight: 600; }
a { color: var(--neon-cyan); transition: color 0.2s; }
a:hover, .main-nav a:hover, .footer-nav a:hover { color: var(--neon-green); }

/* =============================
      CONTAINER & LAYOUT
============================= */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 16px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap-main);
  align-items: flex-start;
}

/* Card & Flex Patterns */
.card-container, .feature-grid, .team-grid, .partner-grid, .content-grid, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .feature-item, .team-member, .partner-profile {
  background: var(--surface);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 18px 0 rgba(0, 188, 212, 0.08), 0 0 0 2px rgba(0,234,255,0.03);
  padding: 24px 18px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .22s cubic-bezier(.4,0,.2,1), border-color .18s;
  border: 1.5px solid transparent;
}
.card:hover, .feature-item:hover, .team-member:hover, .partner-profile:hover {
  box-shadow: 0 2px 26px 0 var(--neon-cyan), 0 0 8px 0 var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 270px;
  flex: 1 1 240px;
  color: #eaf6fb;
  border-left: 4px solid var(--neon-cyan);
}

.team-grid, .partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.team-member, .partner-profile {
  flex: 1 1 288px;
}
.card-content { display: flex; flex-direction: column; justify-content: center; }

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  color: #232830;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 14px 0 rgba(38, 50, 56,0.07), 0 0 0 2px rgba(0,234,255,0.04);
  margin-bottom: 20px;
}

/* Remove margin for last elements in flex wrap */
.card-container > *, .feature-grid > *, .team-grid > *, .partner-grid > *, .content-grid > * {
  margin-bottom: 0;
}

/* =============================
      HEADER & NAV
============================= */
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 18px 0;
  background: var(--primary);
  box-shadow: 0 2px 16px rgba(0, 188, 212, 0.05);
  position: relative;
  z-index: 10;
}
.logo-link img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 9px var(--neon-cyan));
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  padding: 4px 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: .8px;
  transition: color .2s;
  font-weight: 600;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--neon-cyan);
  transition: width .2s;
  border-radius: 2px;
}
.main-nav a:hover:after {
  width: 100%;
}

.cta.primary {
  padding: 12px 28px;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 99px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .85px;
  box-shadow: 0 0 16px 0 var(--neon-cyan);
  transition: background .18s, box-shadow .23s, color .18s, transform .18s;
  position: relative;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--neon-green);
  color: var(--primary);
  box-shadow: 0 0 24px 3px var(--neon-cyan), 0 2px 8px 0 var(--neon-green);
  transform: translateY(-2px) scale(1.03);
}

/* =============================
      HERO SECTION
============================= */
.hero {
  background: linear-gradient(120deg,#263238 40%,#00bcd4 180%), var(--bg-dark);
  box-shadow: 0 8px 32px 0 rgba(0,234,255,0.13);
  min-height: 420px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  gap: 28px;
}
.hero h1, .hero p {
  color: #fff;
}
.hero .cta.primary {
  margin-top: 14px;
}

/* =============================
      FOOTER
============================= */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 40px 0 22px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-large);
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
  font-size: .98rem;
}
.footer-nav a {
  color: var(--neon-cyan);
  transition: color .2s;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .96rem;
  color: #eaf6fb;
}
.footer-contact img {
  margin-right: 8px;
  filter: brightness(0) saturate(100%) invert(74%) sepia(30%) saturate(2249%) hue-rotate(134deg) brightness(101%) contrast(101%);
  vertical-align: middle;
  height: 1.18em;
  width: 1.18em;
}
.footer-brand {
  display: flex;
  align-items: flex-end;
  min-width: 82px;
}
.footer-brand img {
  height: 42px; width: auto;
  filter: drop-shadow(0 0 10px var(--neon-cyan));
}

/* =============================
      SECTION SPECIALS
============================= */
.about-short, .services-overview, .about-mission, .team, .values, .research-intro, .research-projects, .impact, .introduction, .methods, .applications, .faq, .publications, .media-mentions, .partners, .collaboration, .contact-form-section, .contact-details, .privacy-policy, .gdpr-policy, .cookie-policy, .terms-of-use, .confirmation-section {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 24px 0 rgba(0,234,255,0.06);
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* FAQ Styles */
dt { font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; color: var(--neon-cyan); margin-bottom: 2px; font-size: 1.05rem; }
dd { margin-left: 0; margin-bottom: 14px; }

/* =============================
      BUTTONS & MICROINTERACTIONS
============================= */
button, .button {
  font-family: inherit;
  border-radius: 99px;
  padding: 10px 28px;
  background: var(--secondary);
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  transition: background .17s, color .15s, box-shadow .19s;
  box-shadow: 0 0 10px 0 var(--neon-cyan) inset;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: var(--neon-cyan); color: var(--bg-dark); box-shadow: 0 0 18px 3px var(--neon-green) inset;
}

/* =============================
      MOBILE NAVIGATION
============================= */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 1002;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  box-shadow: 0 0 0 4px rgba(0,234,255,0.081);
  transition: background .18s, color .15s;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1023px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(32,40,52,0.98);
  z-index: 1030;
  width: 100vw;
  height: 100vh;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.9,0,.12,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: var(--neon-green);
  color: var(--primary);
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 2rem;
  margin: 22px 24px 0 0;
  box-shadow: 0 0 0 3px var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  padding: 48px 34px;
  margin-top: 34px;
  width: 100%;
}
.mobile-nav a {
  color: var(--neon-cyan);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  padding: 14px 4px;
  border-radius: 8px;
  width: 100%;
  font-weight: 600;
  background: transparent;
  transition: background .15s, color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--neon-green);
  color: var(--primary);
}

/* =============================
      RESPONSIVE BREAKPOINTS
============================= */
@media (max-width: 1023px) {
  header { flex-direction: row; gap: 10px; }
  .cta.primary { margin: 0 0 0 10px; }
  .footer-brand { margin-top: 16px; }
  .team-grid, .partner-grid, .feature-grid, .card-container, .content-grid { flex-direction: column; gap: 20px; }
  .testimonials { flex-direction: column; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 8px; }
  .hero, .about-short, .services-overview, .about-mission, .team, .values, .research-intro, .research-projects, .impact, .introduction, .methods, .applications, .faq, .publications, .media-mentions, .partners, .collaboration, .contact-form-section, .contact-details, .privacy-policy, .gdpr-policy, .cookie-policy, .terms-of-use, .confirmation-section {
    padding: 28px 5vw;
    border-radius: 10px;
  }
  .footer-nav { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-contact { gap: 6px; }
  .footer-brand { margin-top: 10px; }
  .content-wrapper { gap: 16px; }
  .text-image-section, .content-grid { flex-direction: column; gap: 18px; }
  .hero { min-height: 190px; }
}
@media (max-width: 500px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.12rem; }
  .card, .feature-item, .team-member, .partner-profile { padding: 16px 8px; border-radius: 8px; }
  .footer-contact { font-size: 0.91rem; }
  .footer-brand img { height: 28px; }
}
/* =============================
      COOKIE CONSENT BANNER
============================= */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #232830;
  color: #fff;
  z-index: 1500;
  box-shadow: 0 -1px 16px rgba(0,234,255,0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 22px 10vw 18px 7vw;
  gap: 12px;
  font-size: 1rem;
  opacity: 1;
  transition: opacity .27s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner .cookie-msg {
  display: flex;
  flex: 2 1 260px;
  align-items: center;
  font-size: 1rem;
  color: #fff;
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  gap: 18px;
  flex: 2 1 220px;
}
.cookie-consent-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 7px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background .16s, color .17s, box-shadow .15s;
  margin-right: 0;
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: var(--neon-green);
  color: var(--primary);
  box-shadow: 0 0 0 2px var(--neon-cyan);
}
.cookie-consent-banner .settings-btn {
  background: none;
  border: 1.2px solid var(--secondary);
  color: var(--secondary);
}
.cookie-consent-banner .settings-btn:hover {
  background: var(--secondary);
  color: var(--bg-dark);
}

@media (max-width: 600px) {
  .cookie-consent-banner { flex-direction: column; align-items: flex-start; padding: 18px 4vw 15px 4vw; }
  .cookie-consent-banner .cookie-btns { gap: 13px; flex-wrap: wrap; }
}

/* ------------------------------
COOKIES MODAL
------------------------------ */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1510;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(21,27,34,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--bg-light);
  color: #fff;
  border-radius: 16px;
  max-width: 400px;
  width: 90vw;
  padding: 34px 24px 28px 24px;
  box-shadow: 0 8px 34px 1px rgba(0,234,255,0.17);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  position: relative;
  z-index: 1520;
}
.cookie-modal h2 { font-size: 1.25rem; color: var(--neon-cyan); margin-bottom: 8px; }
.cookie-modal .close-modal {
  position: absolute;
  top: 12px; right: 14px;
  background: var(--neon-green);
  color: #263238;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1.4em;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2.4px var(--neon-cyan);
}
.cookie-modal .cookie-cats {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal .cookie-cat-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #29405a;
}
.cookie-modal .cookie-cat-row:last-child { border-bottom: none; }
.cookie-modal .cat-name { font-weight: 600; color: var(--neon-cyan); font-family: 'Montserrat', Arial, sans-serif; }
.cookie-modal .cat-toggle {
  margin-left: auto;
  appearance: none;
  width: 36px; height: 20px;
  border-radius: 12px;
  background: #253850;
  position: relative;
  outline: none;
  transition: background .16s;
  cursor: pointer;
  border: 1px solid var(--neon-cyan);
}
.cookie-modal .cat-toggle:checked {
  background: var(--neon-green);
}
.cookie-modal .cat-toggle:before {
  content: '';
  position: absolute;
  left: 3.5px; top: 3.5px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  transition: left .19s cubic-bezier(.8,0,.5,1);
}
.cookie-modal .cat-toggle:checked:before {
  left: 18.5px;
}
.cookie-modal .cookie-cat-row .always-on {
  font-size: 0.98em;
  color: #43ffd7;
  margin-left: 8px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}
.cookie-modal .cookie-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: .99rem;
  border-radius: 7px;
  background: var(--secondary);
  color: var(--primary);
  padding: 10px 22px;
  transition: background .16s, color .16s, box-shadow .15s;
}
.cookie-modal .cookie-actions button:hover, .cookie-modal .cookie-actions button:focus {
  background: var(--neon-green);
  color: var(--primary);
  box-shadow: 0 0 0 2px var(--neon-cyan);
}

@media (max-width: 400px) {
  .cookie-modal { padding: 22px 8px; }
  .cookie-modal h2 { font-size: 1.05rem; }
}

/* ===========================
      MISC & UTILITIES
============================ */
ul, ol {
  padding-left: 18px;
  margin-bottom: 18px;
}
.section ul, .section ol {
  margin-bottom: 8px;
}

hr { border: none; border-bottom: 1.5px solid var(--neon-cyan); margin: 16px 0; }

::-webkit-scrollbar { width: 9px; background: #232830; }
::-webkit-scrollbar-thumb { border-radius: 6px; background: linear-gradient(120deg, var(--secondary) 0%, var(--bg-dark) 95%); box-shadow: 0 0 0 2px var(--neon-cyan); }

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