@font-face {
  font-family: "Cabin";
  src: url("Fonts/Cabin-VariableFont_wdth,wght.ttf") format("truetype"),
       url("Fonts/Cabin-VariableFont_wdth,wght.woff") format("woff"),
       url("Fonts/Cabin-VariableFont_wdth,wght.woff2") format("woff2"),
       url("Fonts/Cabin-VariableFont_wdth,wght.eot") format("embedded-opentype");
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Cabin", sans-serif;
  color: #fff;
  background: rgb(1,1,64);
}

.BackgroundImage {
  background-image: url('Img/Background.png');
  background-position: center center;
  position: fixed;
  width: 100%;
  height: 100%;
}


/* Navigation Bar's */

.NavBar {
  padding-bottom: 60px;
}

/* Desktop Navigation Bar */
@media only screen and (min-width: 601px) {
  .Mobile_Nav {
    display: none;
  }

  .Desktop_Nav {
    backdrop-filter: blur(3px);
    padding: 20px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(17, 25, 40, 0.75);
    border-radius: 0 0 50% 50%;
    box-shadow: 0 0 5px rgba(119, 0, 255, 0.5);
    overflow: hidden;
  }

  .Desktop_Nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-size: 200% 100%;
    background-image: linear-gradient(to right, rgba(255, 0, 0, 0.5), rgba(0, 255, 0, 0.5), rgba(0, 0, 255, 0.5));
    animation: rgb-glow 7s ease-in-out infinite;
  }
    
  .Desktop_Nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
  }
    
  .Desktop_Nav li {
    margin: 0 30px;
  }
    
  .Desktop_Nav a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
  }
}

/* Mobile Navigation Bar */
@media only screen and (max-width: 600px) {
  .Desktop_Nav {
    display: none;
  }

  .Mobile_Nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(17, 25, 40, 0.75);
  }

  .Mobile_Nav::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background-size: 200% 100%;
    background-image: linear-gradient(to right, rgba(255, 0, 0, 0.5), rgba(0, 255, 0, 0.5), rgba(0, 0, 255, 0.5));
    animation: rgb-glow 7s ease-in-out infinite;
  }

  .Mobile_Nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
  }
    
  .Mobile_Nav li {
    margin: 0 30px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
    
  .Mobile_Nav a {
    color: #fff;
    text-decoration: none;
    font-size: 25px;
  }
}

@keyframes rgb-glow {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
  100.1% {
    background-position: 0% 0%;
  }
}


.circular-image {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  border: 3px solid white;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.AboutMe {
  background-color: rgba(136, 47, 253, 0.205);
  backdrop-filter: blur(20px);
  padding: 20px;
  border-radius: 20px;
  margin: 20px;
  margin-top: 50px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  align-items: center;
}

.AboutMe img {
  margin-right: 20px;
  flex-shrink: 0;
}

.AboutMe p {
  margin-left: 20px;
}

.AboutMeFlex {
  display: flex;
  align-items: center;
}


table {
  border-collapse: collapse;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
}

td {
  padding: 20px;
  text-align: center;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

td:first-child {
  background-color: #ff9e36;
}

td:nth-child(2) {
  background-color: #2bccb7;
}

td:last-child {
  background-color: #ea2d2d;
}

/* For desktop screens */
@media only screen and (min-width: 911px) {
  .EducationFlex {
    display: flex;
  }

  .EducationFlex table{
    flex-grow: 1;
  }

  .EducationFlex p{
    width: 40%;
    margin-right: 10px;
  }

  .MinDevsFlex {
    display: flex;
  }

  .MinDevsMobileFlex {
    display: none;
  }

  .MinDevsDesktopFlex {
    display: flex;
  }

  .MinDevsDesktopFlex img {
    width: 45%;
    border-radius: 50px;
    align-self: center;
  }
}

/* For mobile screens */
@media only screen and (max-width: 910px) {
  .MinDevsDesktopFlex {
    display: none;
  }

  .MinDevsMobileFlex img {
    border-radius: 50px;
    width: 80%;
    display: block;
    margin: auto;
  }
}

@media only screen and (max-width: 480px) {
  .EducationFlex table{
    display: none;
  }
}

.SlideFromLeft {
  position: relative;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  animation-name: slide-in-left;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes slide-in-left {
  0% {
    left: -100%;
  }
  100% {
    left: 0;
  }
}

.SlideFromRight {
  position: relative;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  animation-name: slide-in-right;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes slide-in-right {
  0% {
    right: -100%;
  }
  100% {
    right: 0;
  }
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 20px;
  position: relative;
}

.tag-button {
  background-color: #fff;
  border: 0px solid #00000000;
  color: #ffffff;
  font-size: 14px;
  padding: 8px 16px;
  margin: 0 10px 10px 0;
  border-radius: 20px;
  cursor: pointer;
}

.tag-button:hover {
  background-color: #ccc;
  color: #000000;
}

.show-all-tag-button {
  background-color: #fff;
  border: 1px solid #ccc;
  color: #333;
  font-size: 14px;
  padding: 8px 16px;
  margin: 0 10px 10px 0;
  border-radius: 20px;
  cursor: pointer;
}

.show-all-tag-button:hover {
  background-color: #ccc;
  color: #fff;
}

.article-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

.article-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 0 -10px;
}

.article {
  flex: 0 0 calc(30% - 20px);
  margin: 0 10px 30px;
  background-color: rgba(136, 47, 253, 0.205);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  padding: 20px;
  box-sizing: border-box;
  min-width: 300px; /* added min-width to prevent squishing */
  border-radius: 10px; /* added border-radius for curved corners */
  position: relative;
}


.article a {
  text-decoration: none;
  color: #333;
}

.article img {
  width: 100%;
  margin-bottom: 10px;
  display: block;
  margin: 0 auto;
}

.article-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-title {
  padding-top: 5px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.article-title h2 {
  margin: 0;
}

.article-date {
  font-size: 0.8rem;
  margin-left: 10px;
}

.article-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.article-tags li {
  margin-right: 10px;
  font-size: 0.9rem;
  padding: 5px 10px;
  border-radius: 20px;
}

.article-tags li:last-child {
  margin-right: 0;
}

.ArticleContentContainer {
  padding-top: 30px;
}

.ArticleContent {
  margin: 0 10px 30px;
  background-color: rgba(112, 40, 207, 0.568);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  padding: 20px;
  box-sizing: border-box;
  min-width: 300px;
  border-radius: 10px;
  position: relative;
}

.ArticleContent img {
  width: 60%;
  height: auto;
  border-radius: 20px;
  display: block;
  margin: 0 auto;
}