/* Enable smooth scrolling globally */
html {
  scroll-behavior: smooth;
}



body {
  margin: 0;
  color: #40514E;
  text-align: center;
  font-family: 'Merriweather', serif;
  font-size: 150%;
}

/* Title */
h1 {
  font-size: 5.625rem;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
  color: #66BFBF;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  color: #66BFBF;
  font-weight: normal;
}

h3 {
  font-family: 'Montserrat', sans-serif;
  color: #11999E;
}

p {
  line-height: 2;
}

hr {
  border: dotted #EAF6F6 6px;
  border-bottom: none;
  width: 4%;
  margin: 25px auto;
}

/* Links */
a {
  color: #11999E;
  font-family: 'Montserrat', sans-serif;
  margin: 10px 20px;
  text-decoration: none;
}

a:hover {
  color: #EAF6F6;
}

/* Top Container */
.top-container {
  background-color: #E4F9F5;
  position: relative;
  padding: 25px;
}

.pro {
  text-decoration: underline;
}

/* Middle Container */
.middle-container {
  margin: 0;
}

.middle-container img {
  max-width: 100%; /* Make it responsive */
  height: auto;
  display: block;  /* Ensure it's treated as a block-level element */
  margin: 0 auto;  /* Center it horizontally */
}

/* Bottom Container */
.bottom-container {
  background-color: #66BFBF;
  padding: 50px 0 20px;
}


.contact-me{
  margin: 40px auto 60px;
}

/* Footer Link Style */
.footer-link {
  color: #EAF6F6;
  font-size: 1rem;
}

/* Copyright */
.copyright {
  color: #EAF6F6;
  font-size: 0.75rem;
  padding: 20px 0;
}

/* Projects Section */
.projects-section {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: stretch; /* All project containers are the same height */
  padding: 20px;
  background-color: #f9f9f9;
}

/* Individual Project Containers */
.project {
  width: 37%;
  min-height: 300px; /* Ensures consistent height for all projects */
  text-align: center;
  padding: 10px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Project Images */
.project-image {
  width: 100%; /* Image fills its container */
  height: 150px; /* Ensures all images are the same height */
  object-fit: cover; /* Crops images to maintain aspect ratio */
  border-radius: 8px;
  margin-bottom: 10px;
}

.small-text {
  font-size: 14px;
  text-align: left;
}

/* Button Style */
.btn {
  background: #11cdd4;
  background-image: -webkit-linear-gradient(top, #11cdd4, #11999e);
  background-image: -moz-linear-gradient(top, #11cdd4, #11999e);
  background-image: -ms-linear-gradient(top, #11cdd4, #11999e);
  background-image: -o-linear-gradient(top, #11cdd4, #11999e);
  background-image: linear-gradient(to bottom, #11cdd4, #11999e);
  -webkit-border-radius: 8;
  -moz-border-radius: 8;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  padding: 10px 20px;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: #30e3cb;
  background-image: -webkit-linear-gradient(top, #30e3cb, #2bc4ad);
  background-image: -moz-linear-gradient(top, #30e3cb, #2bc4ad);
  background-image: -ms-linear-gradient(top, #30e3cb, #2bc4ad);
  background-image: -o-linear-gradient(top, #30e3cb, #2bc4ad);
  background-image: linear-gradient(to bottom, #30e3cb, #2bc4ad);
}


/* Back-to-Top Button */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 10px;
  cursor: pointer;
  background-color: #11999E;
  color: #fff;
  border-radius: 5px;
  z-index: 999;
}

#back-to-top.show {
  display: block;
}

/* ============================= */
/*  RESPONSIVE DESIGN FOR MOBILE */
/* ============================= */
@media (max-width: 768px) {
  .projects-section {
    flex-direction: column;
    align-items: center;
  }

  .project {
    width: 80%;
    margin-bottom: 20px;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .btn {
    font-size: 16px;
    padding: 8px 16px;
  }
}
