/* Modern Reset */
:root {
  --primary-color: #2c88d9; /* Vivid brand blue */
  --primary-dark: #1a6cb3; /* Darker brand blue */
  --primary-light: #7fb8ee; /* Lighter brand blue */
  --accent-color: #7c3aed; /* Violet 600 */
  --accent-dark: #5b21b6; /* Violet 800 */
  --dark: #1f2937; /* Gray 800 */
  --gray: #6b7280; /* Gray 500 */
  --light-gray: #e5e7eb; /* Gray 200 */
  --light: #f9fafb; /* Gray 50 */
  --white: #ffffff;
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --secondary: #1e293b;
  --border-radius: 0.375rem;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 6rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --transition: all 0.3s ease;
  --heading-font: 'Source Sans Pro', sans-serif;
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --container-max-width: 1200px;
  --container-padding: 2rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  margin: 0;
  padding: 0;
}

.page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/img/hero-image.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -2;
}

.content-wrapper {
  position: relative;
  z-index: 1;
}

.page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--dark);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: var(--spacing-xs);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.5px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 2px;
  transition: width 0.3s ease;
}

h2:hover::after {
  width: 120px;
}

h3 {
  font-size: 1.5rem;
}

p, ul, ol {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Containers & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

.hero.full-width .container {
  padding: 0;
  max-width: 100%;
}

/* Header */
header {
  background-color: var(--white);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--light-gray);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
}

.branding {
  display: flex;
  flex-direction: column;
}

.logo {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.75rem;
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
}

.tagline {
  font-size: 0.875rem;
  color: var(--gray);
  margin-top: -5px;
}

/* Navigation */
nav {
  display: flex;
}

.main-nav {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: var(--spacing-md);
}

.main-nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  width: 100%;
}

.main-nav a[aria-current="page"] {
  color: var(--primary-color);
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 200;
  margin-left: auto;
  margin-right: var(--spacing-md);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  position: absolute;
  left: 0;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.nav-toggle-bar:first-child {
  top: 0;
}

.nav-toggle-bar:nth-child(2) {
  top: 8px;
}

.nav-toggle-bar:last-child {
  bottom: 0;
}

.nav-toggle.active .nav-toggle-bar:first-child {
  transform: rotate(45deg);
  top: 8px;
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:last-child {
  transform: rotate(-45deg);
  bottom: 9px;
}

/* Main Content */
main {
  padding: var(--spacing-xl) 0;
}

/* Section spacing */
section {
  margin-top: var(--spacing-lg);
}

.content-section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: var(--spacing-xl) 0;
  color: var(--white);
  margin-bottom: 0;
  margin-top: 0;
  background: transparent;
}



.content-section .container {
  position: relative;
  z-index: 1;
}

.content-section h2 {
  color: var(--white);
}

.content-section h2::after {
  background: var(--white);
}

.content-section h3 {
  color: var(--white);
}

.content-section .card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  position: relative;
}

.content-section .card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

.content-section .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-15deg) translateX(-60px);
  transition: all 0.6s ease;
  pointer-events: none;
}

.content-section .card:hover::before {
  transform: skewX(-15deg) translateX(calc(100% + 60px));
}

.content-section .card-title {
  color: var(--white);
}

.content-section .card-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.content-section p {
  color: rgba(255, 255, 255, 0.9);
}

.card-content ul,
.card-content ol {
  margin-left: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.content {
  min-height: 50vh;
}

/* Hero section */
.hero {
  position: relative;
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  text-align: center;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.hero.with-image {
  background: none;
  color: var(--white);
  position: relative;
}

.hero.full-width {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: var(--spacing-lg);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  max-width: none;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="0,0 100,0 100,25 0,100" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 100% 100%;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}



.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--spacing-md);
}

.hero-title {
  margin-bottom: var(--spacing-md);
}

.hero h1 {
  font-size: 3.5rem;
  margin: 0;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff, #e0e0e0);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  margin: var(--spacing-md) 0 var(--spacing-lg);
}

.hero p {
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.8;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero .fade-in.animate-delay-2 {
  display: block;
  margin-top: var(--spacing-lg);
}

.hero .btn {
  background-color: var(--primary-color);
  border: 2px solid var(--white);
  color: var(--white);
}

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

.hero .btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Cards (for team members, publications, etc.) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: var(--spacing-md);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

.card-subtitle {
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-sm);
}

/* Footer */
footer {
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--white);
  padding: var(--spacing-xxl) 0 var(--spacing-md);
  position: relative;
  z-index: 1;
  margin-top: calc(var(--spacing-xxl) * 1.5);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

footer h3 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  position: relative;
  padding-bottom: var(--spacing-xs);
}

footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
}

footer p {
  opacity: 0.8;
  margin-bottom: var(--spacing-xs);
}

footer a {
  color: var(--primary-light);
}

footer a:hover {
  color: var(--white);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: var(--spacing-xs);
}

.social-icons {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
  position: relative;
  z-index: 10; /* Ensure social icons are above any overlays */
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
  position: relative;
  z-index: 10;
  cursor: pointer;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer-bottom .powered-by {
  margin-top: var(--spacing-xs);
  font-size: 0.75rem;
}

/* Contact Form Styles */
.contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--white);
  font-weight: 500;
}

.form-group .required {
  color: #ff5252;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  color: var(--white);
  font-family: var(--body-font);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(44, 136, 217, 0.2);
}

.form-status {
  margin: var(--spacing-sm) 0;
  min-height: 24px;
}

.status-pending {
  color: #ffd54f;
}

.status-success {
  color: #66bb6a;
}

.status-error {
  color: #ff5252;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-lg: 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 80px var(--spacing-md) var(--spacing-md);
    transition: var(--transition);
    z-index: 100;
  }
  
  nav.active {
    right: 0;
  }
  
  .main-nav {
    flex-direction: column;
  }
  
  .main-nav li {
    margin: 0;
    margin-bottom: var(--spacing-sm);
  }
  
  .main-nav a {
    display: block;
    padding: var(--spacing-xs) 0;
  }
  
  header .container {
    padding: var(--spacing-xs) var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .branding {
    max-width: 70%;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .tagline {
    font-size: 0.75rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.125rem;
  max-width: 700px;
  margin: -1rem auto var(--spacing-lg);
  text-align: center;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in 0.8s forwards;
}

@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }

