@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Roboto&display=swap');

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

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to right, #e0eafc, #cfdef3);
  color: #333;
  padding: 0;
  margin: 0;
  background-image: url('vecteezy_earth-and-galaxy-elements-of-this-image-furnished-by-nasa_22777289.jpg'); /* or use URL */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}


header {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 30px 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 1.2s ease-out;
}

main {
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}
.about {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 900px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  gap: 30px;
}

.about-text {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-image {
  flex: 1;
}

.about-image img {
  max-width: 180px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.about h2 {
  font-family: 'Playfair Display', serif;
  color: #003366;
  background-color: #fce4ec;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  animation: slideInLeft 1s ease-out;
}

.about p {
  margin-top: 10px;
  line-height: 1.6;
  animation: fadeIn 2s ease-in;
}


.achievements {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.achievements h2 {
  font-family: 'Playfair Display', serif;
  color: #003366;
  margin-bottom: 15px;
  background-color: #fff3cd;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  animation: slideInRight 1s ease-out;
}

.achievements ul {
  list-style: square;
  padding-left: 20px;
  line-height: 1.8;
  animation: fadeIn 2s ease-in;
}

footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 30px;
  font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .about {
    flex-direction: column;
    text-align: center;
  }

  .about img {
    margin-bottom: 15px;
  }

  main {
    padding: 15px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* Shared card style for all sections */
.card {
  background-color: white;
  padding: 25px;
  margin-top: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Consistent heading style */
.card h2 {
  font-family: 'Playfair Display', serif;
  color: #003366;
  margin-bottom: 15px;
}

/* Quote box styling inside a card */
.quote-box {
  font-style: italic;
  font-size: 1.2rem;
  color: #004080;
  transition: opacity 0.5s ease-in-out;
}

/* Timeline bullet points inside box */
.timeline ul {
  list-style-type: square;
  padding-left: 20px;
  line-height: 1.7;
}

/* Fixes for video container */
.video iframe {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.overlay {
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black */
  padding: 2rem;
  border-radius: 8px;
}
.overlay {
  color: white;
}
.about,
.achievements,
.card {
  color: #000 !important;
}
