@import url("https://fonts.googleapis.com/css?family=Poppins:400;600;700");
@import url("https://fonts.googleapis.com/css?family=Questrial");

:root {
  --bg-color: rgb(10, 10, 10);
  --text-color: #fff;
  --card-bg: rgb(20, 20, 20);
  --border-color: rgba(255, 255, 255, 0.08);
  --accent-color: #64ffda;
  --gray-color: rgb(180, 180, 180);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
}

/* Left profile sidebar */
#profile {
  width: 24vw;
  padding: 4vh 3vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.75),
      rgba(0, 0, 0, 0.8)
    ),
    url("space1.jpg") center center;
  background-size: cover;
  position: fixed;
  top: 0;
  left: 0;
}

#profile_img {
  width: 160px;
  height: 160px;
  min-width: 160px;
  min-height: 160px;
  border-radius: 8px;
  background: url("ProfilePicture.jpg") center center;
  background-size: cover;
  margin-bottom: 2vh;
}

#username {
  font-size: 18px;
  font-weight: bold;
  margin: 1vh 0;
}

#username span {
  font-size: 26px;
  font-family: "Questrial", sans-serif;
}

#usertitle {
  font-size: 18px;
  font-family: "Questrial", sans-serif;
  color: var(--accent-color);
  margin: 1vh 0;
}

#userbio {
  font-size: 15px;
  font-family: "Questrial", sans-serif;
  color: var(--gray-color);
  margin: 1vh 0;
  line-height: 1.4;
}

#about {
  font-size: 15px;
  font-family: "Questrial", sans-serif;
  margin-top: 2vh;
}

#about span {
  display: block;
  margin: 1.2vh 0;
}

#about a:not(.resume-btn) {
  color: inherit;
  text-decoration: none;
}

#about a:not(.resume-btn):hover {
  color: var(--accent-color);
}

#about span i {
  width: 20px;
  text-align: center;
  color: var(--accent-color);
}

.socials {
  margin: 3vh 0 !important;
  display: block !important;
}

.socials span {
  display: inline-block !important;
  margin-right: 1.5vw !important;
}

.socials span a {
  color: #fff;
  text-decoration: none;
  font-weight: normal;
  transition: color 0.2s;
}

.socials span a:hover {
  color: var(--accent-color);
}

.resume-btn {
  display: inline-block;
  margin-top: 2vh;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

.resume-btn:hover {
  background: var(--accent-color);
  color: var(--bg-color);
}

/* Right display area */
#display {
  width: 64vw;
  padding: 6vh 4vw;
  margin-left: 30vw;
  min-height: 100vh;
}

#display h1 {
  font-size: 48px;
  font-weight: bold;
  font-family: "Questrial", sans-serif;
  margin-bottom: 2vh;
}

/* Projects grid */
#work {
  margin: 2vh 0;
  padding: 2vh 0;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.projects a {
  text-decoration: none;
  display: block;
}

.projects section {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  border-radius: 8px;
  color: var(--text-color);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  transform: scale(1);
  height: 100%;
}

.projects section:hover {
  border-color: rgba(100, 255, 218, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

#projects {
  margin-top: 8vh;
}

#about_me {
  margin-top: 8vh;
}

.about_me_text {
  max-width: 720px;
  font-family: "Questrial", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-color);
}

.about_me_text p {
  margin: 0 0 16px;
}

.about_me_text a {
  color: var(--accent-color);
  text-decoration: none;
}

.about_me_text a:hover {
  text-decoration: underline;
}

.card_head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.card_head .section_title {
  margin: 0;
}

.date {
  font-size: 13px;
  font-family: "Questrial", sans-serif;
  color: var(--gray-color);
  white-space: nowrap;
}

.role {
  font-size: 15px;
  color: var(--accent-color);
  margin-top: 4px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tags span {
  font-size: 12px;
  font-family: "Questrial", sans-serif;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--gray-color);
  background: rgba(255, 255, 255, 0.06);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.links a {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(100, 255, 218, 0.4);
  color: var(--accent-color);
  transition: all 0.2s ease;
}

.links a:hover {
  background: var(--accent-color);
  color: var(--bg-color);
}

.section_title {
  font-size: 22px;
  font-weight: bold;
  margin: 1vh 0;
  word-wrap: break-word;
}

.about_section {
  font-size: 15px;
  font-family: "Questrial", sans-serif;
  margin: 12px 0 16px;
  color: var(--gray-color);
  line-height: 1.5;
  word-wrap: break-word;
}

.bottom_section {
  margin-top: 2vh;
  font-size: 13px;
  color: var(--accent-color);
  word-wrap: break-word;
}

.bottom_section span {
  margin-right: 20px;
  font-weight: 600;
}

/* Blog section */
#blog_section {
  margin: 6vh 0;
  padding: 2vh 0;
}

#blogs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

#blogs a {
  text-decoration: none;
}

#blogs section {
  width: 100%;
  display: block;
  border-radius: 8px;
  color: var(--text-color);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  transform: scale(1);
  overflow: hidden;
}

#blogs section:hover {
  border-color: transparent;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transform: scale(1.02);
}

#blogs section img {
  width: 100%;
  display: block;
}

.blog_container {
  padding: 2.5vh 5%;
}

/* Footer */
#footer {
  width: 100%;
  padding: 6vh 0;
  text-align: center;
}

#footer p {
  color: var(--gray-color);
  font-family: "Questrial", sans-serif;
  font-size: 14px;
}

/* Selection */
::selection {
  color: var(--bg-color);
  background: var(--accent-color);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
  #profile {
    width: 100%;
    height: auto;
    padding: 6vh 6vw;
    position: relative;
    text-align: center;
  }

  #profile_img {
    margin: 0 auto 2vh auto;
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
  }

  #display {
    width: 100%;
    padding: 4vh 5vw;
    margin-left: 0;
  }

  #display h1 {
    font-size: 36px;
  }

  .projects {
    grid-template-columns: minmax(0, 1fr);
  }

  .card_head {
    flex-wrap: wrap;
  }

  #blogs {
    grid-template-columns: 1fr;
  }

  .socials span {
    margin-right: 4vw !important;
  }
}

/* Blog post page styles */
.blog-post-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 4vh 5vw;
}

.blog-post-page h1 {
  font-size: 42px;
  font-family: "Questrial", sans-serif;
  margin-bottom: 1vh;
}

.blog-post-page h2 {
  font-size: 24px;
  color: var(--gray-color);
  font-family: "Questrial", sans-serif;
  font-weight: normal;
  margin-bottom: 4vh;
}

.blog-post-page .blog-meta {
  font-size: 14px;
  color: var(--gray-color);
  margin-bottom: 4vh;
}

.blog-post-page .blog-content {
  font-family: "Questrial", sans-serif;
  font-size: 17px;
  line-height: 1.8;
}

.blog-post-page .blog-content p {
  margin: 3vh 0;
}

.blog-post-page .blog-content img {
  width: 100%;
  border-radius: 8px;
  margin: 3vh 0;
}

.blog-post-page .go-back {
  display: inline-block;
  color: var(--accent-color);
  text-decoration: none;
  font-size: 18px;
  margin-bottom: 4vh;
}

.blog-post-page .go-back:hover {
  text-decoration: underline;
}
