/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
}

h2 {
  font-weight: 600;
  color: #204051;
}

/* Logo Styling */
.logo {
  float: left;
  margin-left: 30px;
}

.logo img {
  height: 50px; /* Adjust based on your logo size */
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1); /* Slight hover effect for logo */
}

/* Navbar Styling */
header {
  background-color: #204051;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav {
  flex-grow: 1;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  z-index: 10; /* Ensure nav stays on top */
  margin-right: 30px; /* Add space to the right */
}

nav ul li {
  margin: 0 20px;
  position: relative;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 5px;
}

nav ul li a:hover {
  background-color: #85c1e9;
  color: #fff;
}

nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1f1e1edd;
  border-radius: 5px;
}

nav ul li:hover ul {
  display: block;
}

nav ul li ul li a {
  padding: 10px;
  display: block;
  white-space: nowrap;
}

nav ul li ul li a:hover {
  background-color: #85c1e9;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    margin-right: 0;
  }

  .logo {
    margin-left: 0;
    margin-bottom: 10px;
  }

  nav ul li {
    margin: 10px 0;
  }
}

/*******************************************/

main {
  padding: 2rem;
  background-color: #f4f4f4;
}

/* Enhanced Hero Section */
.hero {
  position: relative;
  z-index: 1;
  height: 100vh; /* Full viewport height */
  background: url("images/1.png") no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero .overlay {
  background: rgba(0, 0, 0, 0.6); /* Dark transparent overlay */
  padding: 2rem;
  border-radius: 10px;
  animation: fadeIn 2s ease-in-out;
}

.hero h1 {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: slideIn 1.5s ease-out;
}

.hero p {
  font-family: cursive;
  font-size: 1.5rem;
  margin: 1rem 0 2rem;
  animation: slideIn 2s ease-out;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #427ea6; /* Eye-catching button color */
  color: white;
  border: none;
  border-radius: 5px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
  text-decoration: none;
  animation: fadeIn 2.5s ease-in-out;
}

.cta-button:hover {
  background-color: #85c1e9;
}

/* Keyframe animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Vision & Mission Section */
.vision-mission {
  padding: 50px 0;
  background-color: #f0f0f0;
  text-align: center;
}

.vision,
.mission {
  margin-bottom: 30px;
}

.vision h2,
.mission h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.vision p,
.mission p {
  font-size: 1.2em;
  line-height: 1.8;
}

/* History Section */
.history {
  padding: 50px 0;
  background-color: #fff;
  text-align: center;
}

.history h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.history-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.history-item {
  flex: 0 1 45%;
  margin-bottom: 30px;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.history-item:hover {
  transform: translateY(-10px);
}

.history-item img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.history-item p {
  font-size: 1.1em;
  line-height: 1.6;
}

/* Back to Top Button */
#backToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #204051;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: none;
}

#backToTopBtn:hover {
  background-color: #85c1e9;
}

/* CTA Section */
.cta-section {
  padding: 40px 20px;
  text-align: center;
  background-color: #3b6978;
  color: #fff;
}

.cta-section .cta-button {
  background-color: #204051;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-section .cta-button:hover {
  background-color: #85c1e9;
}

/* Footer */
footer {
  background-color: #204051;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  height: 60px;
}
