:root {
  --brcr: black;
}

.education {
  margin: 15% 20px;
}

.edu-head {
  width: 100%;
}

.edu-head img {
  margin-bottom: 0;
}

.edu-head p {
  margin-left: 10px;
  color: white;
  font-family: "Noto Serif", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.edu-grid {
  display: flex;
  flex-direction: column;
  margin-top: 10%;
}

.edu-grid img {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  border-radius: 25px !important;
}


/* Target Medium devices (768px and up) */
@media (min-width: 768px) {
  .edu-grid img {
    width: 20%;
    height: 20%;
  }
  
  .eduName {
    color: purple;
    font-size: 2rem;
  }
}

/* Target Large devices (992px and up) */
@media (min-width: 992px) {
  .edu-grid img {
    width: 20%;
    height: 20%;
  }
  
  .eduName {
    color: purple;
    font-size: 2rem;
  }
}

.edu-grid p,
.edu-grid h2 {
  color: white;
}

.edu-box p {
  color: white;
}

.education1-col2,
.education2-col2,
.education3-col2 {
  text-align: left;
}

.education1,
.education2,
.education3 {
  padding: 20px;
  border-radius: 30px;
  position: relative;
  background-clip: padding-box;
  border: 5px solid transparent;
  background-origin: border-box;
  background-image: linear-gradient(var(--brcr), var(--brcr)),
    linear-gradient(-45deg, #e81cff 0%, #40c9ff 100%);
  background-clip: content-box, border-box;
  box-shadow: 0 4px 10px rgba(232, 28, 255, 0.3),
    0 4px 20px rgba(64, 201, 255, 0.3),
    0 8px 40px rgba(0, 219, 222, 0.3);
}

.edu-dark-theme {
  background-color: #13141B;
}

.theme-white-edu {
  background-color: #f5f5dc;
}

.edu-institution,
.edu-completed {
  font-size: 14px;
  white-space: normal;
}

.row {
  margin: 0;
  padding: 0;
}

/* Target Extra Small devices (less than 576px) */
@media (max-width: 575.98px) {
  .eduName {
    color: coral !important;
  }
}

/* Target Small devices (576px and up) */
@media (min-width: 576px) {
  .eduName {
    color: lightcoral !important;
    font-size: 2rem;
  }
}

.certificate p {
  color: white;
}

.certificate img {
  max-width: 100%;
  height: auto;
}

.certificate-card {
  border-radius: 10px;
  border: 5px solid #6C40A7;
  outline: 5px solid #442968;
}

.dark-theme-cer {
  background-color: #13141b;
}

.white-theme-cer {
  background-color: #f3e6ff;
}

form input,
form textarea {
  color: white !important;
}

form textarea::placeholder {
  color: white !important;
}

form label {
  background-color: transparent !important;
}

.form-floating>input:focus+label,
.form-floating>input:not(:placeholder-shown)+label {
  color: #000 !important;
}

#popup {
  height: auto;
  width: auto;
  padding: 14px;
  border-radius: 10px;
  box-sizing: border-box;
  margin: auto;
  position: relative;
  color: white;
  font-weight: 400;
}

form h1 {
  color: white !important;
}

.bTn {
  font-size: 1.2rem;
  padding: 0.3rem 0.5rem;
  border: none;
  outline: none;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: 0.6s;
  box-shadow: 0px 0px 60px #1f4c65;
  -webkit-box-reflect: below 10px linear-gradient(to bottom, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.4));
  margin-bottom: 2rem;
}

.bTn:active {
  scale: 0.92;
}

.bTn:hover {
  background: #d0e7ff;
}

footer {
  width: 100%;
  height: 40%;
  padding-top: 20px;
  box-sizing: border-box;
  position: relative;
  background: radial-gradient(circle at right top, 
        rgba(26, 23, 33, 1),
        rgba(75, 71, 80, 1)); 
  z-index: 2;
}

footer h3 {
  color: rgb(182, 204, 93) !important;
}

footer h1,
footer li,
footer h2,
footer p {
  color: white !important;
  font-family: "Agdasima", sans-serif;
  font-weight: 400;
  font-style: normal;
}

footer p {
  color: silver !important;
}

footer ul {
  list-style-type: none;
  margin: 10px 0;
  padding: 0;
  font-family: "Agdasima", sans-serif;
  font-weight: 400;
  font-style: normal;
}

footer a {
  color: silver;
  text-decoration: none;
  font-family: "Agdasima", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.footer-grid-one {
  margin-top: 15%;
}

#backToTopBtn {
  --color: #0077ff;
  font-family: inherit;
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  z-index: 10;
  background-color: #323A8C;
  border: 2px solid var(--color);
  position: fixed;
  top: 85%;
  right: 3%;
  opacity: 0.8;
}

#backToTopBtn img {
  transform: rotate(90deg);
}

.contactBtn {
  --color: #0077ff;
  font-family: inherit;
  display: inline-block;
  width: 4rem;
  height: 4rem;
  border-top-right-radius: 30px;
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 30px;
  overflow: hidden;
  cursor: pointer;
  z-index: 10;
  background-color: #323A8C;
  color: var(--color);
  border: 2px solid var(--color);
  position: fixed;
  top: 90%;
  left: 3%;
  opacity: 0.8;
}

.contactBtn img {
  transform: scale(1.5);
}

@media (prefers-reduced-motion: reduce) {

  /* Disable animations */
  .animate__animated {
    animation: none !important;
    transition: none !important;
  }
}

/* Mobile devices */
@media (max-width: 575.98px) {
  .animate__animated {
    animation-duration: 0.4s !important;
    transition-duration: 0.5s !important;
  }
}

/* Tablets */
@media (min-width: 576px) and (max-width: 767.98px) {
  .animate__animated {
    animation-duration: 0.4s !important;
    transition-duration: 0.6s !important;
  }
}

.main-head-style {
  color: white;
  font-weight: 450;
  font-size: 2.3rem;
}

.main-head-style span {
  color: violet;
  font-weight: 450;
  font-size: 2.3rem;
}

/* From Uiverse.io by juanpabl0svn */
/* The switch - the box around the slider */
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 3.5em;
  height: 2em;
  cursor: pointer;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  --background: #20262c;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background);
  transition: 0.5s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.4em;
  width: 1.4em;
  border-radius: 50%;
  left: 10%;
  bottom: 15%;
  box-shadow: inset 8px -4px 0px 0px #ececd9, -4px 1px 4px 0px #dadada;
  background: var(--background);
  transition: 0.5s;
}

.decoration {
  position: absolute;
  content: "";
  height: 2px;
  width: 2px;
  border-radius: 50%;
  right: 20%;
  top: 15%;
  background: #e5f041e6;
  backdrop-filter: blur(10px);
  transition: all 0.5s;
  box-shadow: -7px 10px 0 #e5f041e6, 8px 15px 0 #e5f041e6, -17px 1px 0 #e5f041e6,
    -20px 10px 0 #e5f041e6, -7px 23px 0 #e5f041e6, -15px 25px 0 #e5f041e6;
}

input:checked~.decoration {
  transform: translateX(-20px);
  width: 10px;
  height: 10px;
  background: white;
  box-shadow: -12px 0 0 white, -6px 0 0 1.6px white, 5px 15px 0 1px white,
    1px 17px 0 white, 10px 17px 0 white;
}

input:checked+.slider {
  background-color: #5494de;
}

input:checked+.slider:before {
  transform: translateX(100%);
  box-shadow: inset 15px -4px 0px 15px #efdf2b, 0 0 10px 0px #efdf2b;
}

.dark-input {
  background-color: #272727 !important;
}

.white-input {
  background-color: ghostwhite !important;
  color: black !important;
}

.white-input::placeholder {
  color: black !important;
}

.dark-input-label {
  color: white !important;
}

white-input-label {
  color: black !important;
}

/* From Uiverse.io by zjssun */
#cvdow {
  padding: 10px 20px;
  text-transform: uppercase;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 500;
  color: skyblue;
  text-shadow: none;
  background: transparent;
  cursor: pointer;
  box-shadow: transparent;
  border: 1px solid #0D62D4;
  transition: 0.5s ease;
  user-select: none;
}

.about-btn {
  margin-top: 5%;
}

#cvdow:hover {
  color: #ffffff;
  background: #008cff;
  border: 1px solid #008cff;
  text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 0 20px #ffffff;
  box-shadow: 0 0 5px #008cff, 0 0 20px #008cff, 0 0 50px #008cff,
    0 0 100px #008cff;
}

/* From Uiverse.io by gharsh11032000 */
.animated-button {
  position: relative;
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #0D62D4;
  font-size: 16px;
  background-color: inherit;
  border-radius: 100px;
  font-weight: 600;
  color: skyblue;
  box-shadow: 0 0 0 2px #ffffff20;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.animated-button span:last-child {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: #2196F3;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
}

.animated-button span:first-child {
  position: relative;
  z-index: 1;
}

.animated-button:hover {
  box-shadow: 0 0 0 5px #2195f360;
  color: #ffffff;
}

.animated-button:active {
  scale: 0.95;
}

.animated-button:hover span:last-child {
  width: 150px;
  height: 150px;
  opacity: 1;
}

/* From Uiverse.io by vikiWayne */
.upcode-certificate-btn {
  padding: 0.5em 1em;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  color: #2c9caf;
  transition: all 1000ms;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  outline: 2px solid #2c9caf;
  background: transparent;
  margin-bottom: 25px;
  margin-right: 5px;
}

.upcode-certificate-btn:hover {
  color: #ffffff;
  transform: scale(1.1);
  outline: 2px solid #70bdca;
  box-shadow: 4px 5px 17px -4px #268391;
}

.upcode-certificate-btn::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 0;
  width: 0;
  height: 100%;
  background-color: #2c9caf;
  transform: skewX(45deg);
  z-index: -1;
  transition: width 1000ms;
}

.upcode-certificate-btn:hover::before {
  width: 250%;
}

.urlBtn {
  filter: invert(0) !important;
}

.gitBtn {
  filter: invert(0.3) !important;
}