*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  list-style: none;
}

body{
  background:
  linear-gradient(rgb(0, 68, 255), rgba(0, 0, 0, 0.9)),
  url("assets/backgroundv2.png");

  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  animation: bgMove 4s ease-in-out infinite alternate;
}

@keyframes bgMove{
  from { background-position: center 100%; }
  to   { background-position: center 10%; }
}

.header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 12%;
  background-color: transparent;
  border: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo{
  display: inline-block;
  width: 100px;
  height: 100px;
  background-image: url("assets/LOGO MRD.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: 3s linear 0s infinite backwards;
}

span{
  color: rgba(88, 98, 236, 1);
}

.navbar a{
  font-size: 18px;
  color: white;
  font-weight: 500;
  margin: 0 20px;
  border-bottom: 3px solid transparent;
  transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active{
  color: white;
  border-bottom: 3px solid white;
}

.home{
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 7em;
  padding: 0px 12% 0;
}

.home-content{
  max-width: 1000px;
}

.home-content h3{
  font-size: 62px;
  line-height: 1.2;
}

.home-content h1{
  font-size: 62px;
  line-height: 1.2;
}

.home-content p{
  font-size: 18px;
  margin: 25px 0 30px;
}

.btn-box{
  width: 345px;
  display: flex;
  gap: 2em;
}

.img-box img{
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

::-webkit-scrollbar{
  width: 15px;
}

::-webkit-scrollbar-thumb{
  background-color: rgb(52, 52, 58);
}

::-webkit-scrollbar-track{
  background-color: rgb(7, 70, 245);
  width: 50px;
}

/* About me */

.about-section{ 
  padding: 110px 24px 70px; /* space for your fixed header */
}

.about-wrap{
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* layout */
.about-top{
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.about-bottom{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* cards */
.about-card{
  background: rgba(17, 24, 39, 0.85);
  border-radius: 21px;
  padding: 24px;
  color: white;
}

.about-card--big{
  min-height: 120px;
}

.about-card--side{
  min-height: 120px;
}

/* text */
.about-card h2{
  font-size: 28px;
  margin-bottom: 14px;
}

.about-card p{
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 12px;
}

.detail{
  margin-top: 14px;
}

.detail-label{
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}

.detail-value{
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.about-mini h3{
  font-size: 18px;
  margin-bottom: 8px;
}

.about-mini a{
  display: inline-block;
  margin-top: 10px;
  color: rgba(88, 98, 236, 1); 
  text-decoration: none;
  font-weight: 600;
}

.about-mini a:hover{
  text-decoration: underline;
}

/* responsive */
@media (max-width: 980px){
  .about-top{
    grid-template-columns: 1fr;
  }
  .about-bottom{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px){
  .about-bottom{
    grid-template-columns: 1fr;
  }
}



/* Projects Style */

.Projects{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3rem;
  padding: 100px 10% 300px;

}

.Projects-content{
  width: 100%;
}

.Projects-content h2{
  text-align: left;
  color: black;
  font-size: 52px;
  margin: 0;
}

.Projects-content p{
  color: black;
  font-size: 20px;
  margin: 2em 0 1.5em;
  padding-bottom: 20px;
  border-bottom: 3px dotted #000; /*dotted Line*/
  width: 100%;
}


.card-container{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  width: 100%;
  padding-top: 0;
}


.card{
  min-height: 120px;
  color: rgba(88, 98, 236, 1); 
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 2px 4px rgba(71, 79, 189, 1);
}

.card img{
  width: 100%;
  height: 240px;
  display: block;
  object-fit: cover;
}

.card-content{
  padding: 16px;
}

.card-content h3{
  font-size: 28px;
  margin-bottom: 8px;
}

.card-content p{
  color: black;
  font-size: 15px;
  line-height: 1.3;
}

.card-content .btn{
  position: relative;
  display: inline-block;
  padding: 8px 16px;
  background-color: black;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 16px;
  color: rgba(71, 79, 189, 1);
}

@media (max-width: 1200px){
  .card-container{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px){
  .card-container{
    grid-template-columns: 1fr;
  }
}