@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@400;700&display=swap');

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'SF Pro Display', 'Montserrat', Arial, sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #f7f8fa 0%, #e0e5ec 100%);
  color: #444;
  min-height: 100vh;
}

h1, h2, h3 {
  font-weight: 600;
  margin-bottom: 10px;
  color: #444;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

/* Header */
header {
  padding: 60px 0;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.05);
}

header h1 {
  font-size: 3.8rem;
  color: #444;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

header nav a {
  font-size: 1.2rem;
  margin: 0 20px;
  color: #444;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

header nav a:hover {
  color: #007aff; /* Apple Blue */
  transform: scale(1.1);
}

/* Main Section */
main {
  padding: 80px 0;
  background-color: #fff;
  text-align: center;
  margin-top: 2rem;
}

section {
  padding: 60px 0;
  margin-bottom: 40px;
  position: relative;
}

section h2 {
  font-size: 2.8rem;
  color: #007aff;
  margin-bottom: 30px;
  text-transform: uppercase;
  font-weight: 700;
}

section p, .poem-text, .note, .copyright, footer p {
  color: #444;
}

section p {
  font-size: 1.2rem;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.8;
  text-align: justify;
  font-weight: 400;
}

/* Image Styling */
section img {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  padding: 2rem 0 1rem 0;
  text-align: center;
  background-color: #f7f7f7;
  color: #444;
  margin-top: 3rem;
  border-top: 1px solid #e0e5ec;
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}

footer a {
  color: #007aff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #005bb5;
  text-decoration: underline;
}

footer p {
  font-size: 1rem;
  margin-top: 20px;
  font-weight: 300;
}

/* Social Icons */
.social-icons {
  margin-top: 30px;
}

.social-icons a {
  margin: 0 15px;
  font-size: 2rem;
  color: #444;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #007aff; /* Apple Blue */
  transform: scale(1.1);
}

/* Section Styling */
section.poem {
  background-color: #f2f2f2;
}

section.about {
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.hero {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(200,200,200,0.25);
  color: #111;
  padding: 3rem 0 2rem 0;
  text-align: center;
  box-shadow: 0 2px 24px 0 rgba(0,0,0,0.04);
}
.hero h1 {
  font-size: 3rem;
  margin: 0 0 0.5rem 0;
  letter-spacing: 2px;
  font-weight: 700;
  color: #0071e3;
}
.subtitle {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  opacity: 0.8;
}
nav {
  margin-top: 1rem;
}
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

/* Add left margin to the first nav item to center align the 3rd line*/
.nav-list li:first-child {
  margin-left: 1.13cm; /* or any amount you want */
}


.nav-list li a {
  color: #0071e3;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 1.2rem;
  border-radius: 1.5rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.nav-list li a:hover {
  background: rgba(0,113,227,0.08);
  color: #111;
  box-shadow: 0 2px 8px #cfd8dc44;
}

.card, .about.card, #homepage-images.card {
  background: rgba(255,255,255,0.85);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.08);
  margin-bottom: 2.5rem;
  padding: 2rem 1.5rem;
  transition: box-shadow 0.2s, background 0.2s;
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  border: 1px solid rgba(200,200,200,0.12);
}
.card:hover {
  box-shadow: 0 12px 40px 0 rgba(31,38,135,0.18);
  background: rgba(255,255,255,0.85);
}
.poem-text {
  font-style: italic;
  font-size: 1.2rem;
  margin: 1.2rem 0;
  color: #444;
}
.poem-img {
  width: 100%;
  max-width: 350px;
  border-radius: 1rem;
  margin-top: 1rem;
  box-shadow: 0 2px 12px rgba(80,80,120,0.10);
}
.note {
  font-size: 0.9rem;
  color: #888;
}
.grid-pictures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.grid-pictures figure {
  background: rgba(255,255,255,0.95);
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(80,80,120,0.07);
  overflow: hidden;
  margin: 0;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.grid-pictures figure:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 24px #007aff22;
}
.grid-pictures img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  background: #f7f8fa;
}
.grid-pictures figcaption {
  padding: 0.7rem 0.5rem;
  font-size: 1rem;
  color: #007aff;
  background: rgba(247,248,250,0.7);
  border-radius: 0 0 1rem 1rem;
}

/* Hide and animate more-pictures section */
#more-pictures.hidden-section {
  display: none;
  opacity: 0;
  transition: opacity 0.5s;
}
#more-pictures.visible-section {
  display: block;
  opacity: 1;
  animation: fadeIn 0.7s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

footer {
  background: #f7f7f7;
  color: #444;
  padding: 2rem 0 1rem 0;
  margin-top: 3rem;
  border-top: 1px solid #e0e5ec;
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.contact-info p, .contact-info a {
  color: #0071e3;
  margin: 0.2rem 0;
  text-decoration: none;
}
.social-icons {
  display: flex;
  gap: 1.2rem;
}
.social-icons img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(80,80,120,0.10);
}
.social-icons img:hover {
  box-shadow: 0 4px 16px #0071e3;
  transform: scale(1.08);
}
.copyright {
  flex-basis: 100%;
  text-align: center;
  margin-top: 1rem;
  color: #888;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .container {
    width: 95%;
    padding: 0 0.5rem;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .poem-img {
    max-width: 100%;
  }
  .header-social-links {
    position: static;
    justify-content: center;
    margin-top: 1rem;
  }
  .research-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .research-profile {
    order: -1;
  }
  
  /* Mobile-specific fixes */
  .hero {
    padding: 2rem 0 1.5rem 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-list li a {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }
  
  .cover-caption h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }
  
  .cover-caption {
    padding: 1rem 0 0.8rem 0;
  }
  
  main {
    padding: 2rem 0;
  }
  
  section {
    padding: 2rem 0;
    margin-bottom: 2rem;
  }
  
  section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .poem-text {
    font-size: 1rem;
    margin: 1rem 0;
  }
  
  .big-home-img {
    max-width: 100%;
  }

  .poster-img {
    max-width: 100%;
  }

  
  .homepage-images-vertical {
    gap: 2rem;
  }
  
  .card {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
  }
  
  .cover-image-container {
    margin: 0 auto 2rem auto;
  }
  
  .simple-research {
    margin-bottom: 1rem;
  }
  
  .simple-research p {
    font-size: 0.9rem;
  }
  
  .simple-research a {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: 98%;
    padding: 0 0.3rem;
  }
  
  .hero {
    padding: 1.5rem 0 1rem 0;
  }
  
  .cover-caption h1 {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
  }
  
  .cover-caption {
    padding: 0.8rem 0 0.6rem 0;
  }
  
  section h2 {
    font-size: 1.5rem;
  }
  
  .poem-text {
    font-size: 0.9rem;
  }
  
  .card {
    padding: 1rem 0.8rem;
  }
  
  .nav-list li a {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }
}

.homepage-images-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.big-home-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px rgba(80,80,120,0.10);
  margin-bottom: 0.7rem;
  background: #f7f8fa;
}

.poster-img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px rgba(80,80,120,0.10);
  margin-bottom: 0.7rem;
  background: #f7f8fa;
}




#homepage-images figcaption {
  color: #007aff;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  background: rgba(247,248,250,0.7);
  border-radius: 0 0 1rem 1rem;
  padding: 0.5rem 0;
  text-align: center;
}

.img-caption {
  color: #111 !important;
  font-size: 1.15rem;
  font-weight: 400;
  background: rgba(247, 248, 250, 0.593);
  border-radius: 0 0 1rem 1rem;
  padding: 0.5rem 0;
  text-align: center;
}
#homepage-images h2, .homepage-images-vertical h2 {
  color: #444;
  font-weight: 400;
}

body, section p, .poem-text, .note, .copyright, footer p, .nav-list li a, .contact-info p, .contact-info a, .social-icons a, h1, h2, h3, h4, h5, h6 {
  color: #444 !important;
  font-weight: 400;
}

.cover-image-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-image-container .big-home-img {
  display: block;
}

.cover-image-container .poster-img {
  display: block;
}

.cover-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  background: rgba(0,0,0,0.28);
  padding: 2.5rem 0 2rem 0;
  border-radius: 1.2rem;
}
.cover-caption h1 {
  color: #fff;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25), 0 1px 2px #000;
  margin: 0;
}


#poem2 p {
  text-align: center;
}
