:root {
  --offBlack: rgb(14, 14, 28);
  --gray: rgb(40, 40, 62);
  --offBlue: rgb(18, 17, 34);
  --offWhite: rgb(239, 242, 245);
  --offOffWhite: rgb(230, 191, 223);
  --pink: rgb(255, 105, 180);
  --pinkGlow: rgba(255, 105, 180, 0.08);
  --babypink: rgb(255, 150, 203);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  margin-left: 4px;
  font-family: 'Poppins', helvetica, arial, sans-serif;
  background-color: var(--offBlack);
  color: var(--offWhite);
  height: 100%;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: var(--offWhite);
}

h1{
    font-size: 2em;
    color: var(--pink);
}

h2 {
    font-size: 1.5em;
    color: var(--pink);
}

.subtitle{
  margin-right: 40px;
}
nav{
    margin-top: 10px;
    margin-right: 20px;
    gap: 16px;
    display: flex;
    justify-content: flex-end;
    position: fixed;
    right: -8px;
    background-color: var(--offBlack);
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 1;
}

nav a{
    color: var(--pink);
    padding: 4px;
    border-radius: 40%;
}

nav a:hover {
    box-shadow:  0 0 20px 20px var(--pinkGlow);
}

header{
  height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.headerContent{
  display: flex;
  flex-direction: column;
  max-width: 60%;
  padding-left: 4px;
}

.bold{
  font-weight: bold;
  color: var(--offOffWhite);
}

/*Project*/

.content{
  background-color: var(--offBlue);
  padding-top: 4px;
  padding: 0px 4px;
  border-radius: 20px;
}

.content h2{
  margin-bottom: -14px;
  padding-top: 12px;
}

.projectsList{
  padding: 28px 8px;   
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 40px;
  overflow-x: auto;
  overflow-y: visible;
}

.projectsList::-webkit-scrollbar {
  visibility: hidden;
}
.project{
  background-color: var(--gray);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  max-width: 20%;
  min-width: 250px;
  transition: transform 0.3s ease;
  padding: 8px 16px;
  border-radius: 16px;
}

.project p{
  display: none;
}

.projectBottom{
  padding-top: 60px;
}

.projectBottom, .imgdiv {
  display: flex;
}

.project:hover {
  transition: transform 0.3s ease;
  transform: scale(1.05);
  box-shadow:  0 0 10px 10px var(--pinkGlow);
}

.projectTitle{
  margin-top: -40px;
}

.imgdiv img {
  border-radius: 8px;
  max-width: 100%;
}

.tags{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  width: 100%;
  gap: 4px;
}

.tags {
  display: flex;
  justify-content: center;
  width: 100%;
}

#tagDetails{
  background-color: var(--offBlack);
  color: var(--pink);
  border: 1px solid var(--pink);
}


.tag{
  background-color: var(--pink);
  color: var(--offBlack);
  padding: 4px 8px;
  border-radius: 8px;
}

.contact{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 8px;
  padding: 20px 0px;
  gap: 40px;
}

.contactLeft{
  max-width: 100%;
  text-align: center;
}

form{
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  justify-content: center;  
  gap: 12px;
  background-color: var(--offBlue);
  padding: 20px 40px;
  color: var(--offWhite);
  gap: 20px;
  border-radius: 20px;
  margin-bottom: 20px;
}

input, textarea{
  background-color: var(--offBlack);
  height: 150%;
  border-radius: 8px;
  color: var(--offWhite);
}

input::placeholder, textarea::placeholder {
  color: var(--offWhite);
  opacity: 0.2;
}

button{
  background-color: var(--pink);
  padding: 4px 8px;
  font-weight: bold;
  border-radius: 8px;
  border: none;
}

.formGroup{
  display: flex;
  flex-direction: column;
  gap: 4px;
}


.contact p {
  margin-top: -4px;
  margin-bottom: 40px;
}
.white{
  color: var(--offWhite);
}

.info{
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: space-evenly;
}

.projectHeader{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.projectDetails div div{
  background-color: var(--offBlue);
  padding: 20px 40px;
  border-radius: 12px;
  margin-bottom: 60px;
  width: 30%;
  overflow-wrap: break-word;
  white-space: normal; 
}

.projectHeader img {
  margin-top: 40px;
  border-radius: 12px;
  height: 400px;
  width: auto;
  object-fit: contain;
   transition: transform 0.3s ease;
}

.landscape img{
  height: auto;
  width: 60%;
  object-fit: contain;
}

.projectHeader img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
  box-shadow:  0 0 10px 10px var(--pinkGlow);
}

#about{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#about .subtitle {
  text-align: center;       
  margin: 0 auto;          
  width: 100%;
}

#about p{
  max-width: 60%;
  text-align: center;
  line-height: 1.6;
}

.moreAboutMe {
  display: none;
}

.moreAboutMe.show {
  display: inline;
}

.readMoreDiv{
  display: flex;
  justify-content: flex-end;
  margin: 20px 0;
  padding-right: 8px;
}

#readMoreBtn{
  color: var(--pink);
}
#readMoreBtn:hover{
  box-shadow:  0 0 10px 10px var(--pinkGlow);
  border-radius: 20px;
}

.images{
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  margin-bottom: 60px;
  max-width: 50%;
  width: auto;
  height: auto;
  max-height: 40%;
}

.info img {
  max-width: 40%;
  height: auto;
  border-radius: 8px;
  margin-left: 5%;
  padding-top: 4px;
  border-radius: 12px;
}

.info a {
  color: var(--pink);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

H1, H3{
  align-self: center;
}

.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.4s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }
.fade-in:nth-child(4) { animation-delay: 0.8s; }
.fade-in:nth-child(5) { animation-delay: 1s; }
.fade-in:nth-child(6) { animation-delay: 1s; }
.fade-in:nth-child(7) { animation-delay: 1s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  header{
    height: auto;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
  }

  .headerContent {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    padding-left: 4px;
    gap: 20px;
  }
  .headerContent h1{
    margin-bottom: -12px;
  }
  .projectsList {
    gap: 20px;
    padding: 16px 2px;
  }
  .project {
    max-width: 80%;
    min-width: 180px;
    padding: 8px 8px;
  }
  .contact {
    flex-direction: column;
    gap: 40px;
    margin: 12px 2px;
    padding: 12px 0;
  }
  .contactLeft {
    max-width: 100%;
  }
  form {
    width: 100%;
    padding: 12px 8px;
  }
  .images {
    max-width: 100%;
    gap: 8px;
  }
  .info {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .info img {
    max-width: 90%;
    margin-left: 0;
  }
  .projectDetails div div {
    width: 90%;
    padding: 12px 8px;
  }
  .projectHeader img,
  .landscape img {
    width: 100%;
    height: auto;
    max-height: 250px;
  }
  nav {
    position: static;
    justify-content: center;
    margin: 8px 0;
    padding: 8px 16px;
    border-radius: 8px;
    position: fixed;
  }

  .tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

.contactLeft{
  margin-bottom: -40px;
}

.content h2{
  margin-bottom: 4px;
}
}

