/*
  Futuristic & Eco-Minimalism Design System
  -----------------------------------------
  Fonts:
  - Headers: 'Roboto', sans-serif
  - Body: 'Lato', sans-serif

  Color Palette (Triad):
  - Dark Space Blue (Primary): #0A192F
  - Vibrant Eco Green (Secondary): #00F5D4
  - Energetic Coral (Accent): #FF6B6B
  - Light Background: #F4F4F9
  - Light Text/Headings: #FFFFFF
  - Dark Text: #333333
  - Darker Text/Headings: #222222
*/

/* ------------------- */
/* CSS Variables       */
/* ------------------- */
:root {
  --primary-color: #0A192F; /* Dark Space Blue */
  --secondary-color: #00F5D4; /* Vibrant Eco Green */
  --accent-color: #FF6B6B; /* Energetic Coral */
  --accent-color-darker: #e05252;
  
  --bg-light: #F4F4F9;
  --bg-dark: var(--primary-color);
  
  --text-light: #FFFFFF;
  --text-dark: #333333;
  --text-darker: #222222;
  --text-muted: #6c757d;

  --font-header: 'Roboto', sans-serif;
  --font-body: 'Lato', sans-serif;
  
  --border-radius: 8px;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);

  --header-height: 80px;
}

/* ------------------- */
/* Base & Reset        */
/* ------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ------------------- */
/* Typography          */
/* ------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--text-darker);
  line-height: 1.3;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color-darker);
}

.light-text {
  color: var(--text-light) !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.light-text h1, .light-text h2, .light-text h3, .light-text p {
  color: var(--text-light);
}

/* ------------------- */
/* Layout & Utilities  */
/* ------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 80px 0;
}

.section-padding-dark {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.section-padding-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.text-center {
  text-align: center;
}

.grid-container-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.grid-container-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Background Image Utilities */
.hero-section, .parallax-section, .section-padding-dark[style*="background-image"] {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
}

.hero-overlay, .section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.6));
  z-index: -1;
}

.parallax-section {
  background-attachment: fixed;
}

/* ------------------- */
/* Global Components   */
/* ------------------- */

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-color-darker);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* --- Cards --- */
.card, .testimonial-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover, .testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.card .card-image {
  width: 100%;
  margin-bottom: 20px;
}

.card .card-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  border: 4px solid var(--secondary-color);
}

.card .card-content h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.card .card-content h4 {
  color: var(--accent-color);
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 15px;
}

/* --- Forms --- */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  background: var(--bg-light);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-darker);
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.3);
}

.contact-form label {
  position: absolute;
  top: 15px;
  left: 15px;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s ease;
}

.contact-form input:focus + label,
.contact-form textarea:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 10px;
  font-size: 0.85rem;
  background-color: var(--bg-light);
  padding: 0 5px;
  color: var(--accent-color);
}


/* ------------------- */
/* Header & Navigation */
/* ------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(10, 25, 47, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: var(--header-height);
  transition: background-color 0.3s ease;
}

.site-header.scrolled {
  background-color: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  font-family: var(--font-header);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 700;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.burger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  margin: 5px 0;
  transition: all 0.3s ease;
}


/* ------------------- */
/* Section Styles      */
/* ------------------- */

/* --- Hero --- */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
}

.hero-content {
  max-width: 800px;
}

.hero-content h1 {
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

/* --- Case Studies / Stats --- */
.stats-widgets {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-bottom: 50px;
  gap: 20px;
}
.stat-widget .stat-number {
  font-family: var(--font-header);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: block;
}
.stat-widget .stat-label {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
}
.case-study {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: var(--border-radius);
}
.case-study h3 {
  color: var(--secondary-color);
}


/* --- Portfolio / Logos --- */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.logo-item img {
  max-height: 50px;
  width: auto;
  filter: grayscale(100%) contrast(0%);
  opacity: 0.7;
  transition: all 0.3s ease;
}
.logo-item:hover img {
  filter: none;
  opacity: 1;
}

/* --- Research / Accordion --- */
.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
}
.accordion-header::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}
.accordion-item.active .accordion-header::after {
  transform: translateY(-50%) rotate(45deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.accordion-content p {
  padding: 0 20px 20px 20px;
  color: rgba(255, 255, 255, 0.8);
}

/* --- Testimonials --- */
.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  align-items: center;
}
.testimonial-card footer {
  display: flex;
  align-items: center;
  margin-top: 20px;
}
.testimonial-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}
.testimonial-card cite {
  font-style: normal;
  text-align: left;
  font-weight: 700;
}
.testimonial-card cite span {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--secondary-color);
}

/* --- Events --- */
.event-item {
  display: flex;
  align-items: center;
  gap: 30px;
  background: #fff;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.event-date {
  background: var(--accent-color);
  color: #fff;
  text-align: center;
  border-radius: var(--border-radius);
  padding: 10px;
  min-width: 70px;
}
.event-date span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}
.event-details {
  flex-grow: 1;
}
.event-details h3 { margin-bottom: 5px; }
.event-details p { margin-bottom: 0; color: var(--text-muted); }

/* --- Resources --- */
.resource-list {
  list-style-type: none;
  max-width: 800px;
  margin: 0 auto;
}
.resource-list li {
  background: #fff;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.resource-list a {
  font-weight: 700;
  display: block;
  position: relative;
  padding-right: 20px;
}
.resource-list a::after {
  content: '→';
  position: absolute;
  right: 0;
  transition: transform 0.3s ease;
}
.resource-list a:hover::after {
  transform: translateX(5px);
}

/* ------------------- */
/* Footer              */
/* ------------------- */
.site-footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 20px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.footer-column h3, .footer-column h4 {
  color: var(--text-light);
  margin-bottom: 20px;
}
.footer-column ul {
  list-style: none;
}
.footer-column ul li {
  margin-bottom: 10px;
}
.footer-column a {
  color: rgba(255, 255, 255, 0.7);
}
.footer-column a:hover {
  color: var(--secondary-color);
}
.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* ------------------- */
/* Modal Styles        */
/* ------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
}
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 40px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: var(--border-radius);
  position: relative;
  text-align: center;
}
.close-modal-btn {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
}
.close-modal-btn:hover,
.close-modal-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.modal-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
}

/* ------------------- */
/* Static Pages        */
/* ------------------- */
.static-page-content {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 40px;
}

.success-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--bg-dark);
}

/* ------------------- */
/* Responsive Design   */
/* ------------------- */

@media (max-width: 992px) {
  .grid-container-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  
  .grid-container-2, .grid-container-3 {
    grid-template-columns: 1fr;
  }

  /* --- Mobile Navigation --- */
  .nav-links-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .nav-links-wrapper.active {
    transform: translateX(0);
  }
  .nav-links {
    flex-direction: column;
    text-align: center;
  }
  .nav-links a {
    font-size: 1.5rem;
  }
  .burger-menu {
    display: block;
  }
  
  .burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  /* --- Other adjustments --- */
  .stats-widgets {
    flex-direction: column;
  }
  .event-item {
    flex-direction: column;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}