/* Main Styles CSS */

:root{
  --card-width: 900px;
  --card-radius: 14px;
  --card-shadow: 0 12px 40px rgba(6,24,63,0.18);
  --accent: #2d89ef;
  --accent-blue: #667eea;
  --light-blue: #64b6ff;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
  scroll-behavior: smooth;
}

body{
  font-size: 18px;         /* Increase base font size */
  line-height: 1.6;        /* More vertical spacing between lines */
  letter-spacing: 0.03em;  /* Slightly more space between letters */
  font-family: 'Roboto', sans-serif;
  height:100%;
  margin:0;
  color: #222;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background: linear-gradient(to bottom, #87d4f5ff, rgb(145, 244, 237), 
  rgb(89, 181, 205), rgb(57, 186, 143));
}

/* subtle vignette so cards pop more */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.06) 100%);
}

.card {
  width: min(85%, var(--card-width));
  border-radius: var(--card-radius);
  padding: 1.6rem 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,252,0.98));
  box-shadow: var(--card-shadow);
  transform-origin: center center;
  transition: transform 0.9s cubic-bezier(.2,.9,.2,1), box-shadow 0.3s ease, opacity 0.5s ease;
  will-change: transform, opacity;
  border: 1px solid rgba(10,20,40,0.04);
  overflow: hidden;
}

.card h1 { margin-top: 0; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.card p, .card li { font-size: 1.2rem; line-height:1.6; color:#111; }

/* small helper to shrink card slightly when off-focus */
.card.off-focus {
  transform: scale(0.92) translateY(10px);
  opacity:0.85;
  box-shadow: 0 8px 24px rgba(6,24,63,0.08);
}

.card {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card.visible {
opacity: 1;
transform: translateY(0);
}

p, h1, h2, h3, h4, h5, h6, div, span, li {
  color: #111;
}

blockquote {
font-style: italic;
color: #333; /* dark gray text */
font-size: 1.2rem; /* larger font */
border-left: 1px solid #ccc;
padding-left: 1rem;
margin: 1rem;
float: right;
width: 50%;
}

a {
  color: #0c3b6a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 10;
  padding: 0.5rem 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.topnav ul {
  display: flex;
  justify-content: center; /* or space-around / space-between */
  margin: 0;
  padding: 0;
  list-style: none;
}

.topnav ul li {
  margin: 0 15px;
}

.topnav ul li a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.topnav ul li a:hover {
  color: darkgreen;
}

.content-wrapper {
  margin-left: 0px;
  padding: 1rem 1rem;
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .content-wrapper {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
.flex-container {
  flex-direction: column;
}
/* Optional: Adjust widths for small screens */
.flex-container > section {
  max-width: 100% !important;
  flex-basis: 100% !important;
}
/* Optional: center the content on small screens */
.flex-container {
  align-items: center;
}
}

/* Gallery Slideshow */
#slideshow-container {
text-align: center;
padding: 2rem;
background-color: rgba(255, 255, 255, 0.1); /* light translucent background */
border-radius: 10px;
}

#slideshow-image {
max-width: 90%;
height: auto;
border-radius: 8px;
box-shadow: 0 0 10px #ccc;
margin-bottom: 1rem;
}

button {
padding: 0.6rem 1.2rem;
font-size: 1rem;
background-color: #2d89ef;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}

.gallery-nav {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  background: white;
  transform: scale(1.2);
}

/* research boxes */
.research-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1rem;
}

.research-card {
background: #f7f5ee;
border-radius: 12px;
padding: 1rem 1.2rem;
margin: 1rem 0.5rem;
box-shadow: 0 4px 8px rgba(247, 190, 2, 0.1);
transition: transform 0.4s ease, box-shadow 0.4s ease;
cursor: default;
will-change: transform;
}

.research-card.hidden {
opacity: 0;
transform: translateY(30px);
}

.research-card.visible {
opacity: 1;
transform: translateY(0);
box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.research-card:hover {
background: #eaeafa;
}

.research-title {
font-weight: bold;
font-size: 1.1em;
}

.research-content {
max-height: 0;
overflow: hidden;
transition: 
max-height 0.4s ease,
opacity 0.3s ease,
transform 0.3s ease;
transform-origin: top;
will-change: max-height, opacity, transform;
}

.research-card.active .research-content {
max-height: 500px;
opacity: 1;
transform: scaleY(1);
margin-top: 0.5rem;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--light-blue));
  color: rgb(246, 243, 243);
  border-radius: 16px;}

  /* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(20px);
  transform: translateY(20px);
  opacity: 0;
  animation: slideInUp 1s ease forwards;
}

@keyframes slideInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-blue);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: var(--accent-blue);
  color: white;
  transform: translateY(-2px);
}
