/* 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: #F8FAFC;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #1A2632;
  background: #F8FAFC;
  font-size: 1rem;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
a {
  color: #74C8AE;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #488772;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.25em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

/* CONTAINER */
.container {
  max-width: 1120px;
  padding: 0 20px;
  margin: 0 auto;
  width: 100%;
}

/* FLEX LAYOUTS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(116,200,174,0.09);
  position: relative;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #E3E9ED;
  border-radius: 18px;
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* GRIDS and LISTS */
.feature-grid,
.project-list,
.team-bios,
.publication-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.feature-grid > div,
.project-list > div,
.team-bios > div,
.publication-list > div {
  flex: 1 1 260px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(116,200,174,0.10);
  padding: 24px 20px;
  min-width: 220px;
  margin-bottom: 8px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div:hover,
.project-list > div:hover,
.team-bios > div:hover,
.publication-list > div:hover {
  box-shadow: 0 6px 28px rgba(116,200,174,0.17);
  transform: translateY(-2px) scale(1.017);
}

/* HEADER & NAVIGATION */
header {
  background: linear-gradient(90deg, #E3E9ED 0%, #FDFCFB 100%);
  box-shadow: 0 2px 10px rgba(116,200,174,0.06);
}
header .container {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  position: relative;
}
.logo img {
  height: 40px;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #547980;
  padding: 8px 0px;
  border-radius: 3px;
  transition: background .19s, color .18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #1A2632;
  background: #EEF3F4;
}
.cta.primary {
  background: #74C8AE;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 32px;
  padding: 11px 32px;
  font-size: 1rem;
  box-shadow: 0 1px 4px rgba(116,200,174,0.15);
  transition: background .2s, color .18s, transform .14s;
  margin-left: 16px;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.cta.primary:hover, .cta.primary:focus {
  background: #488772;
  color: #fff;
  transform: scale(1.032);
}
.cta {
  background: #fff;
  color: #74C8AE;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: 2px solid #74C8AE;
  border-radius: 32px;
  padding: 11px 28px;
  font-size: 1rem;
  box-shadow: 0 1px 4px rgba(116,200,174,0.10);
  transition: border-color .2s, background .18s, color .18s;
  cursor: pointer;
  letter-spacing: 0.02em;
  display: inline-block;
}
.cta:hover, .cta:focus {
  background: #E3E9ED;
  border-color: #488772;
  color: #488772;
}

/* Mobile Burger Menu */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #1A2632;
  display: none;
  align-items: center;
  cursor: pointer;
  margin-left: 20px;
  padding: 8px 14px;
  border-radius: 12px;
  transition: background .2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #E3E9ED;
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(243,246,250,0.97);
  box-shadow: 0 4px 64px rgba(116,200,174,0.11);
  z-index: 1005;
  transition: transform .45s cubic-bezier(.77,.19,.22,.94);
  transform: translateX(-110%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #1A2632;
  padding: 18px 32px 0px 24px;
  align-self: flex-end;
  cursor: pointer;
  transition: color .18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #74C8AE;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  margin-top: 48px;
  align-items: flex-start;
  padding: 0px 38px;
}
.mobile-nav a {
  font-size: 1.20rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #1A2632;
  background: none;
  border-radius: 8px;
  padding: 13px 0px;
  margin-bottom: 6px;
  display: inline-block;
  width: 100%;
  transition: background .18s, color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #EEF3F4;
  color: #488772;
}

/* Hide nav on mobile, show burger */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 10px;
  }
}

/* HERO & TEXT */
h1, .content-wrapper h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 24px;
  color: #1A2632;
  letter-spacing: -0.01em;
}
h2, .content-wrapper h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  color: #22796e;
  margin-bottom: 18px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #488772;
}
p, .content-wrapper p, .text-section p {
  font-size: 1.08rem;
  margin-bottom: 15px;
  color: #222c38;
  letter-spacing: 0.01em;
}
strong {
  font-weight: 600;
  color: #22796e;
}
.text-section {
  margin-top: 10px;
  margin-bottom: 18px;
}
.brand-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  background: #F7FCF9;
  border-radius: 12px;
  padding: 11px 18px;
  color: #178d70;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  box-shadow: 0 1px 7px rgba(116,200,174,0.07);
}
.brand-highlight img {
  height: 32px;
}

/* FOOTER */
footer {
  background: linear-gradient(90deg, #E3E9ED 0%, #FDFCFB 100%);
  padding: 35px 0 14px 0;
  box-shadow: 0 -2px 10px rgba(116,200,174,0.04);
}
footer .container {
  flex-direction: column;
  align-items: center;
  display: flex;
  gap: 17px;
  width: 100%;
}
.footer-logo img {
  height: 35px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 5px;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #49808e;
  font-size: 1em;
  transition: color .17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #178d70;
}
.footer-contact {
  color: #547980;
  font-size: 0.95rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}

/* CONTACT DETAILS */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 16px;
  margin: 15px 0 18px 0;
}
.contact-details > div {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F7FCF9;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 1.04rem;
  min-width: 200px;
}
.contact-details img {
  height: 24px;
  width: 24px;
  object-fit: contain;
}

/* CARDS & TESTIMONIALS */
.testimonial-card {
  background: #F7FCF9;
  color: #1A2632;
  border: 1px solid #E3E9ED;
  box-shadow: 0 1px 7px rgba(116,200,174,0.12);
  border-radius: 18px;
  margin-bottom: 20px;
  font-size: 1.04rem;
}
.testimonial-card strong {
  color: #178d70;
}

/* PUBLICATION LISTS, PROJECTS, BIOS */
.publication-list > div a,
.project-list > div a {
  color: #74C8AE;
  font-weight: 500;
  text-decoration: underline;
}
.publication-list > div a:hover,
.project-list > div a:hover {
  color: #488772;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  border-top: 3px solid #74C8AE;
  box-shadow: 0 -2px 24px rgba(116,200,174,0.15);
  z-index: 1100;
  padding: 22px 5vw 22px 5vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  animation: cookiefadein .6s;
}
@keyframes cookiefadein {
  0% { transform: translateY(100%); opacity: 0.7; }
  66% { opacity: 1; }
  100% { transform: translateY(0); }
}
.cookie-banner strong {
  color: #1A2632;
  font-weight: 600;
}
.cookie-banner-btns {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.cookie-banner button {
  border: none;
  border-radius: 26px;
  padding: 8px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-top: 4px;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .15s;
}
.cookie-banner .accept {
  background: #74C8AE;
  color: #fff;
  box-shadow: 0 1px 7px rgba(116,200,174,0.15);
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: #488772;
}
.cookie-banner .reject {
  background: #E3E9ED;
  color: #1A2632;
  border: 1.5px solid #22796e;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #fff6f6;
  color: #74C8AE;
  border-color: #74C8AE;
}
.cookie-banner .settings {
  background: #fff;
  color: #178d70;
  border: 1.5px solid #74C8AE;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: #E3E9ED;
  color: #488772;
}

/* COOKIE MODAL / PREFERENCES */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(68, 138, 134, 0.24);
  z-index: 1200;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: modalfadein .4s;
}
@keyframes modalfadein {
  0% { opacity: 0; }
  70% { opacity: 1; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 43px rgba(116,200,174,0.18);
  padding: 32px 28px 26px 28px;
  min-width: 290px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #178d70;
  margin-bottom: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #1A2632;
  cursor: pointer;
  transition: color .16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #74C8AE;
}
.cookie-modal-toggles {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0;
}
.cookie-toggle-row label {
  font-size: 1rem;
  color: #22796e;
}
.cookie-toggle-row input[type="checkbox"] {
  width: 36px;
  height: 18px;
  accent-color: #74C8AE;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal-actions button {
  border-radius: 22px;
  padding: 9px 24px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: #74C8AE;
  color: #fff;
  transition: background .15s;
}
.cookie-modal-actions .secondary {
  background: #E3E9ED;
  color: #178d70;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: #488772;
  color: #fff;
}
.cookie-modal-actions .secondary:hover, .cookie-modal-actions .secondary:focus {
  background: #fff;
  color: #74C8AE;
}

/* DREAMY PASTEL COLORS */
body, .section {
  background: linear-gradient(120deg, #FCF6F5 0%, #F3F8FF 60%, #F7FCF9 100%);
}
.feature-grid > div, .project-list > div, .team-bios > div, .publication-list > div, .card {
  background: linear-gradient(135deg, #E3E9ED 60%, #F8FAFC 100%);
}
.text-section, .content-wrapper {
  background: transparent;
}

/* SPACING CONTROL */
.content-wrapper {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
section {
  margin-bottom: 60px;
  padding: 40px 0; /* gap set by .container */
}
.card, .feature-grid > div { margin-bottom: 20px; }

/* ANIMATIONS */
.card, .feature-grid > div, .project-list > div, .team-bios > div, .publication-list > div {
  transition: box-shadow 0.22s cubic-bezier(.57,.03,.61,.74), transform 0.16s cubic-bezier(.45,.36,.49,.88);
}
.card:hover, .feature-grid > div:hover, .project-list > div:hover, .team-bios > div:hover, .publication-list > div:hover {
  box-shadow: 0 8px 38px rgba(116,200,174,0.21);
  transform: translateY(-3px) scale(1.012);
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .feature-grid, .project-list, .team-bios, .publication-list {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div,
  .project-list > div,
  .team-bios > div,
  .publication-list > div {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  h1, .content-wrapper h1 {
    font-size: 2rem;
  }
  h2, .content-wrapper h2 {
    font-size: 1.2rem;
  }
  .main-nav {
    display: none;
  }
  .footer-nav {
    gap: 11px;
    font-size: 0.95em;
    flex-wrap: wrap;
  }
  .feature-grid, .project-list, .team-bios, .publication-list {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .container {
    padding: 0 4px;
  }
  .contact-details {
    gap: 10px 4px;
    font-size: 0.99rem;
  }
  .section {
    padding: 26px 5px;
  }
}
@media (max-width: 500px) {
  .card, .feature-grid > div, .project-list > div, .team-bios > div, .publication-list > div {
    padding: 14px 7px;
    font-size: 0.97rem;
  }
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
  width: 12px;
  background: #E3E9ED;
}
::-webkit-scrollbar-thumb {
  background: #CCE6E0;
  border-radius: 8px;
}

/* SELECTION COLOR */
::selection {
  color: #fff;
  background: #74C8AE;
}

/* PRINT STYLES */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display:none !important; }
  body { background: #fff; color: #222; }
}
