@keyframes popout {
  to {
      transform: scale(1.1, 1.1);
  }
}

@keyframes popup {
  from {
      opacity: 0%;
  }
  to {
      opacity: 100%;
  }
}

@keyframes blureffect {
  from {
      filter: blur(20px);
  }
  to {
      filter: blur(0px);
  }
}

.firstpage {
  margin-top: 6.5%;
  float: left;
  margin-left: 5%;
  font-size: 100px;
  font-family: "Quicksand", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #333;
  transition: color 0.5s ease;
}

body {
  background-image: url(Images/background.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  color: #333;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.navbar ul {
  text-align: center;
  list-style-type: none;
}

.navbar a {
  color: white;
  text-decoration: none;
  transition: color 0.5s ease;
}

#navi {
  margin-left: 30%;
}

.navbar button {
  background-image: url(Images/buttonback.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  margin: auto;
  font-size: large;
  margin-left: 2%;
  float: left;
  min-height: 45px;
  min-width: 90px;
  border-radius: 15%;
  color: #333;
  transition: background-image 0.5s ease, box-shadow 0.5s ease, color 0.5s ease;
}

.navbar button:hover {
  animation-name: popout;
  animation-fill-mode: forwards;
  animation-duration: 0.5s;
  box-shadow: 3px 3px 5px rgb(161, 161, 161);
  cursor: pointer;
  transition: box-shadow 0.5s ease;
}

p {
  margin-left: 5%;
  list-style-type: none;
  font-family: "Montserrat Alternates", serif;
  font-weight: 300;
  font-size: 30px;
  overflow: auto;
  float: none;
  font-style: normal;
  color: #333;
  transition: color 0.5s ease;
}

.a {
  animation-name: popup;
  animation-duration: 1.5s;
}

.b {
  animation-name: popup;
  animation-duration: 3.5s;
}

.c {
  animation-name: popup;
  animation-duration: 5.5s;
}

#pic {
  animation-name: blureffect;
  animation-duration: 1.5s;
  height: 300px;
  margin-right: 2%;
  position: static;
  margin-bottom: 5%;
  float: right;
}

label {
  font-family: "Montserrat Alternates", serif;
  font-weight: 300;
  font-size: 30px;
  margin-left: 20px;
  color: #333;
  transition: color 0.5s ease;
}

.linkedin {
  float: right;
  width: 100px;
  margin-right: 45%;
  border: none;
  padding: none;
  margin-bottom: none;
  margin-top: 2.5%;
  transition: filter 0.5s ease;
}

.linkedin:hover {
  animation-name: popout;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  cursor: pointer;
}

.personal {
  width: 200px;
  border: none;
  padding: none;
  margin-bottom: none;
  margin-top: 2.4%;
  float: left;
  margin-left: 25%;
  transition: filter 0.5s ease;
}

.personal:hover {
  animation-name: popout;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  cursor: pointer;
}

.navbar-button:hover {
  animation-name: popout;
  animation-fill-mode: forwards;
  animation-duration: 0.5s;
  box-shadow: 3px 3px 5px rgb(161, 161, 161);
  cursor: pointer;
  transition: box-shadow 0.5s ease;
}

.university {
  width: 200px;
  border: none;
  padding: none;
  margin-bottom: none;
  margin-top: 2.4%;
  float: right;
  margin-right: 20%;
  transition: filter 0.5s ease;
}

.university:hover {
  animation-name: popout;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  cursor: pointer;
}

.container:after {
  content: "";
  clear: both;
  display: table;
}

.certleft {
  width: 350px;
  float: left;
  margin-right: 80px;
  margin-left: 50px;
  margin-top: 10px;
}

.certleft:hover {
  animation-name: popout;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

.certright {
  width: 350px;
  float: right;
  margin-left: 80px;
  margin-right: 50px;
  margin-top: 10px;
}

.certright:hover {
  animation-name: popout;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

.text {
  font-size: 22px;
  font-family: "Montserrat Alternates", serif;
  font-weight: 300;
  color: #333;
  transition: color 0.5s ease;
}

.github {
  float: right;
  width: 200px;
  margin-right: 40%;
  border: none;
  padding: none;
  margin-bottom: 50px;
  margin-top: 2.5%;
  transition: filter 0.5s ease;
}

.github:hover {
  animation-name: popout;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

#theme-toggle {
  width: 60px;
  height: 30px;
  background-color: #ccc;
  border-radius: 15px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

#theme-toggle .slider {
  width: 30px;
  height: 30px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  transition: left 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

#theme-toggle img {
  width: 20px;
  height: 20px;
  position: absolute;
}

#theme-toggle .moon {
  left: 5px;
  opacity: 0; 
}

#theme-toggle .sun {
  right: 5px;
  opacity: 1; 
}

body[data-theme="dark"] #theme-toggle .slider {
  left: 30px;
}

body[data-theme="dark"] #theme-toggle .moon {
  opacity: 1; 
}

body[data-theme="dark"] #theme-toggle .sun {
  opacity: 0; 
}

body[data-theme="dark"] {
  background-color: #121212;
  color: #e0e0e0;
  background-image: none;
  transition: background-color 0.5s ease, color 0.5s ease; 
}

body[data-theme="dark"] .firstpage,
body[data-theme="dark"] p,
body[data-theme="dark"] label,
body[data-theme="dark"] .text {
  color: #e0e0e0;
  transition: color 0.5s ease; 
}

body[data-theme="dark"] .navbar a,
body[data-theme="dark"] .navbar button {
  color: white;
  transition: color 0.5s ease; 
}

body[data-theme="dark"] .navbar button {
  background-image: url(Images/buttonback.jpg);
  box-shadow: none;
  transition: background-image 0.5s ease, box-shadow 0.5s ease; 
}

body[data-theme="dark"] .navbar button:hover {
  box-shadow: 3px 3px 5px rgb(161, 161, 161);
  transition: box-shadow 0.5s ease; 
}

body[data-theme="dark"] .personal,
body[data-theme="dark"] .university,
body[data-theme="dark"] .github {
  filter: invert(100%);
  transition: filter 0.5s ease; 
}

.certificate-container {
  text-align: center; /* Center the image */
  cursor: pointer; /* Indicate it's clickable */
}

.certificate-image {
  max-width: 80%; /* Adjust as needed */
  height: auto;
}

.fullscreen-overlay {
  display: none; /* Initially hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Dark overlay */
  z-index: 1000; /* Ensure it's on top */
  text-align: center;
}

.fullscreen-image {
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close-fullscreen {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: white;
  color: black;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
}