body{
  margin: 0;
  background-color: #000000;

  background-image:
    radial-gradient(white 1px, transparent 1px),
    radial-gradient(white 1px, transparent 1px),
    radial-gradient(white 2px, transparent 2px),
    radial-gradient(white 1px, transparent 1px);

  background-size:
    97px 131px,
    163px 211px,
    281px 337px,
    419px 389px;

  background-position:
    0 0,
    37px 83px,
    140px 55px,
    210px 190px;
}
body::before{
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background-image:
    radial-gradient(white 1px, transparent 1px),
    radial-gradient(white 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px;
  background-position: 0 0, 50px 75px;
  opacity: 0.3;
  animation: moveStars 120s linear infinite;
  z-index: -1;
}


@keyframes moveStars{
  from{
    transform: translate(0, 0);
  }
  to{
    transform: translate(-200px, -200px);
  }
}
.page{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding-top: 12vh;
}
.wrapper{
    text-align: center;
}
.card{
  border: 4px solid black;
  padding: 10px;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 620px;
  max-width: 92%;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 40px rgba(255,255,255,0.05);
  animation: fadeIn 1.2s ease forwards;
  opacity: 0;

}
@keyframes fadeIn{
  from{
    opacity: 0;
    transform: translateY(20px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

.card-inner{
  border: 2px solid black;
  padding: 16px;
  background-color: white;

  display: flex;
  flex-direction: column;
  min-height: 100px;
}
.card-info p{
  margin: 0;
  text-align: left;
}

.card-info{
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 20px;
} 

.card-top{
  display: flex;
  align-items: center;
  gap: 40px;
}

.card-left{
  display:flex;
  gap:25px;
  align-items:flex-start;
}
.card-photo img{
  width: 120px;
  height: auto;
  display: block;
}
.card-nav{
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-self: center;
  font-size: 30px;
  text-align: right;
  transition: all 0.3s ease;
}

.card-nav a{
  color: black;
  text-decoration: underline;
}
.card-nav a:hover{
  letter-spacing: 1px;
}

.card-footer{
  margin-top: auto;
  text-align: left;
  font-size: 19px;
}
.name h1{
  font-size: 22px;
  margin: 0 0 6px 0;
  text-align: left;
  color: #000000;
}
.welcome{
  color:rgb(230, 229, 237);
}

.about-content{
  color: white;
}
.about-image img{
  width: 120px;
  height: auto;
  display: block;
}

.page-about{
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.about-me{
  text-align: center;
  color: white;
  margin: 0 0 40px 0;
}

.about-layout{
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 48px;
  align-items: flex-start;
}

.about-image img{
  width: 420px;       
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.6); 
}

.about-content{
  color: white;
  max-width: 650px;
  line-height: 1.6;
  font-size: 18px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 22px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  
}

.about-content p{
  margin: 0 0 18px 0;
}
.back-btn{
  display: inline-block;
  margin-top: 20px;
  color: white;
  text-decoration: none;
  font-size: 18px;
  border: 1px solid white;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;                 /* starts invisible */
  animation: fadeUp 0.9s ease forwards;
}

.page-title{
  color: white;
  text-align: center;
  margin-top: 10vh;
  margin-bottom: 40px;
}

/* Grid: left->right, then wraps down automatically */
.all-projects{
  width: min(1100px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: 80px;
}

/* Each project “column” */
.project{
  text-align: left;
  color: white;
}

/* Planet/icon */
.planet{
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin-bottom: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Text */
.project-name{
  font-size: 18px;
  margin: 0 0 8px 0;
}

.project-date{
  margin: 0 0 10px 0;
  opacity: 0.85;
}

.project-description{
  margin: 0;
  line-height: 1.4;
  opacity: 0.9;
}

.learn-more{
  display: inline-block;
  margin-top: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.25s ease;
}

.learn-more:hover{
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* Project detail page layout */
.project-page{
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 60px 0 90px;
  color: #fff;
}

/* Header */
.project-header{
  margin-bottom: 28px;
  color: white;
}

.project-title{
  margin: 14px 0 6px;
  font-size: 42px;
  letter-spacing: 0.5px;
  color: white;
  
}

.project-subtitle{
  margin: 0;
  opacity: 0.85;
  font-size: 16px;
  color: white;
}

/* Main content card */
.project-card-detail{
  border-radius: 18px;
  padding: 26px 26px 10px;
  background: rgba(0,0,0,0.40);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 70px rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  color: white;
}

/* Sections */
.project-section{
  padding: 18px 6px 26px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.project-section:last-child{
  border-bottom: none;
}

.project-section h2{
  margin: 0 0 10px;
  font-size: 22px;
}

.project-section p{
  margin: 0 0 10px;
  line-height: 1.65;
  opacity: 0.92;
}

.project-section ul{
  margin: 8px 0 10px 22px;
  padding: 0;
}

.project-section li{
  margin: 6px 0;
  line-height: 1.5;
  color: white;
}

/* Attachments */
.attachments{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.attachments a{
  color: #fff;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.attachments a:hover{
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.10);
}

.contact-page{
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 20px;
  color: white;
  text-align: center;
}

.contact-title{
  font-size: 48px;
  margin-bottom: 12px;
}

.contact-intro{
  opacity: 0.85;
  margin-bottom: 30px;
}

.contact-card{
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  padding: 30px;
  backdrop-filter: blur(8px);
}

.contact-item{
  margin-bottom: 20px;
}

.contact-item span{
  display: block;
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.contact-item a{
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.contact-item a:hover{
  opacity: 0.8;
}