/* Reset some default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  animation: fadeIn 1.5s ease-in;
}

/* Make body take up full viewport height and use a comfortable font */
body {
  font-family: monospace, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #212529; /* main background */
  color: #f8f9fa; /* main text */
}

/* Style header */
header {
  background: #343a40; /* secondary background */
  color: #f8f9fa; /* main text */
  padding: 1em 0;
  text-align: center;
}

/* Style navigation bar */
#nav-bar {
  background: #343a40; /* secondary background */
  color: #f8f9fa; /* main text */
  width: 100%;
  padding: 0.5em 0;
}

#nav-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
}

#nav-bar a {
  color: #f8f9fa; /* main text */
  text-decoration: none;
  padding: 0.5em;
}

#nav-bar a:hover,
#nav-bar a:visited,
#nav-bar a:active {
  color: #f8f9fa; /* main text */
  background: #212529; /* main background */
}

/* Style the introduction section */
#intro-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2em;
  text-align: center;
}

#intro-section img {
  border-radius: 50%;
  max-width: 100%;
  height: auto;
}

#intro-section h2 {
  margin: 1em 0 0.5em;
  text-align: center;
}

#intro-section p {
  max-width: 800px;
}

/* Style external links */
#ext-links {
  margin-top: 1em;
}

#ext-links a {
  margin: 0 1em;
  color: #f8f9fa; /* same as main text */
  text-decoration: none;
}

#ext-links a:hover,
#ext-links a:visited,
#ext-links a:active {
  color: #f8f9fa; /* same as main text */
  text-decoration: underline;
  box-shadow: 0px 0px 20px 10px rgb(218, 218, 218);
}

/* Style the stack section */
#my-stack {
  display: flex;
  justify-content: center;
  padding: 2em;
}

#my-stack img {
  max-width: 100px;
  height: auto;
}

/* Style the contact section */
#contact {
  background: #343a40; /* secondary background */
  padding: 2em;
  text-align: center;
  color: #f8f9fa; /* main text */
}

.con-text a {
  color: #f8f9fa; /* main text */
}

.con-text a:visited,
.con-text a:active {
  color: #f8f9fa; /* main text */
}

#contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact-form input,
#contact-form textarea {
  width: 80%;
  max-width: 500px;
  padding: 0.5em;
  margin: 0.5em 0;
  border: 1px solid #f8f9fa; /* main text */
  border-radius: 4px;
  background-color: #212529; /* main background */
  color: #f8f9fa; /* main text */
}

#contact-form textarea {
  height: 100px;
}

/* Style the footer */
footer {
  background: #343a40; /* secondary background */
  color: #f8f9fa; /* main text */
  padding: 1em 0;
  text-align: center;
  margin-top: auto;
}

/* Responsive styles */
@media (min-width: 768px) {
  #intro-section {
    flex-direction: row;
    justify-content: space-between;
    text-align: center;
  }

  #intro-text {
    flex: 1;
    max-width: fit-content;
  }

  #img-div {
    margin-right: 100px;
    text-align: center;
  }

  #intro-section img {
    max-width: 250px;
  }
}

#my-stack {
  display: flex;
  align-items: center;
}

#my-stack i {
  margin: 0 10px;
  box-shadow: 0px 20px 5px 2.5px rgb(218, 218, 218);
}

#my-stack i:last-child {
  margin-left: -10px;
}

#about-me {
  text-align: center;
}

h3 {
  text-decoration: underline;
}

/* Styles for hidden section */
.hidden {
  display: none;
}

#toggle-details {
  cursor: pointer;
}

#projects {
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

#my-img {
  width: 200px; /* Ensure width and height are equal */
  height: 200px;
  object-fit: cover; /* Makes sure the image fills the circle area */
  border-radius: 50%; /* Makes it a circle */
}

img {
  border: #495057 solid;
  border-radius: 50%;
}

#cert-link {
  text-align: center;
}

#cert-link a {
  color: #f8f9fa; /* same as main text */
  text-decoration: none;
}

#cert-link a:hover,
#cert-link a:visited,
#cert-link a:active {
  color: #f8f9fa; /* same as main text */
  text-decoration: underline;
  box-shadow: 0px 0px 20px 10px rgb(218, 218, 218);
}

#pdf-link a:hover,
#pdf-link a:visited,
#pdf-link a:active {
  color: #f8f9fa; /* same as main text */
  text-decoration: underline;
  box-shadow: 0px 0px 20px 10px rgb(218, 218, 218);
}

.center {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

#my-img {
  box-shadow: 0px 0px 20px 10px rgb(218, 218, 218);
  border: #495057 solid;
}

#ext-links a {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#ext-links a:hover {
  transform: scale(1.1); /* Slight zoom on hover */
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Add glow */
}

#my-stack i {
  transition: transform 0.3s ease-in-out;
}

#my-stack i:hover {
  transform: rotate(20deg) scale(1.2); /* Rotate and scale icons on hover */
}
