a {
  color: #0066cc;
  text-decoration: none;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  height: auto;
}

body {
  display: flex;
  flex-direction: column;
  font-family: Georgia, serif;
  color: white;
  position: relative;
  z-index: 0;
}


main {
  background-color: black;
  color: white;
  flex: 1;
}



.background-image {
  max-width: 100%;
  width:400px;
  height: auto;
  display: block;
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2))
          drop-shadow(0 0 8px rgba(255, 165, 0, 0.3))
          drop-shadow(0 0 12px rgba(255, 69, 0, 0.25));
  transition: filter 0.3s ease;
}



.background-image:hover {
  animation: glowPulse 2.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0% {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2))
            drop-shadow(0 0 8px rgba(255, 165, 0, 0.3))
            drop-shadow(0 0 12px rgba(255, 69, 0, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3))
            drop-shadow(0 0 18px rgba(255, 165, 0, 0.6))
            drop-shadow(0 0 24px rgba(255, 69, 0, 0.5));
  }
  100% {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2))
            drop-shadow(0 0 8px rgba(255, 165, 0, 0.3))
            drop-shadow(0 0 12px rgba(255, 69, 0, 0.25));
  }
}


body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

header, nav, main, footer {
  padding: 1rem;
}

nav {
  background-color: #eee;
  font-size: 20px;
}

footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: black;
  color: white;
  text-align: center;
  padding: 1rem;
  box-sizing: border-box;
}

.black-text {
  color: black;
}

/* Updated header layout */
header {
  position: relative;
  background-color: #333;
  color: white;
  height: calc(150px + 2rem);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;  
  padding: 0;    /* ← remove vertical padding */
}




/* Remove default h1 spacing */
header h1 {
  margin: 0;
  padding-left: 2rem;  /* or try 2rem for more space */
  line-height: 1;
  display: flex;
  align-items: center;
}

 h2{
  margin: 0;
  padding-left: 1rem;
  padding-top: 1rem;
}

h3 {
  padding-top: 1rem;
  padding-left: 1rem;
  margin: 0;
}





/* Container for top-right image */
.top-right-container {
  height: 100%;
  display: flex;
  align-items: stretch; 
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}



.top-right-container img {
  height: 100%;
  width: auto;
  margin: 0;
  padding: 0;
  display: block;
}





/* Responsive layout for mobile */
@media (max-width: 500px) {


  .top-right-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-content: center;
    margin-top: 0.5rem;
    height: auto;
  }

  .top-right-container img {
    max-height: 90px;
  }

  header h1{
    margin-top: 15px;
  }
}

#contactAndImage {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 2rem;
  box-sizing: border-box;
  flex-wrap: wrap;          /* allow wrapping on small screens */
}


#contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.background-image-container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}



p {
  padding-left: 1.2rem;
  font-size: 1.2rem; 
  line-height: 1.6;  
}

@media (max-width: 600px) {
  #contactAndImage {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  #contact {
    width: 100%;
    text-align: center;
    padding: 0;
  }

  .background-image {
    width: 80vw;
    max-width: 100%;
    height: auto;
  }
}
