/* COLORS */
:root {
  --color-background: #141c27;
  --color-background-secondary: #171e2b;
  --color-background-tertiary: #111721;

  --color-foreground: #e4ecff;
  --color-foreground-secondary: #b0b8c7;
  --color-accent: #90959d;
  --color-muted: #58636e;
  --color-border: #212730;

  --color-primary: #5f88fe;
  --color-on-primary: #e1e9f7;

  --color-secondary: #6a5bfd;
  --color-on-secondary: #e1e9f7;

  --color-blue: #192231;
  --color-blue-text: #6e8dbb;
  --color-on-blue: #6e8dbb;

  --color-green: #609397;
  --color-green-text: #609397;
  --color-on-green: #053535;

  --color-red: #311919;
  --color-red-text: #bb6e6e;
  --color-on-red: #bb6e6e;

  --color-purple: #804582;
  --color-purple-text: #b483b6;
  --color-on-purple: #d2b5f3;

  --color-orange: #712f1b;
  --color-orange-text: #b6837c;
  --color-on-orange: #e08f5c;
}

/* UTILS */
body {
  background-color: var(--color-background);
  color: var(--color-foreground);
}

body {
  display: flex;
  height: 100dvh;
  overflow: hidden;
}

aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-right: 1px solid var(--color-border);
  background-color: var(--color-background-secondary);
  padding: 40px 20px;
  width: 300px;
  height: 100%;
  min-height: 100dvh;
  overflow-y: auto;
}

aside .header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

aside .header img {
  border-radius: 8px;
  width: 90px;
  height: auto;
}

aside .header p {
  color: var(--color-blue-text);
  font-weight: 500;
  font-size: 0.875rem;
  text-align: center;
  text-transform: uppercase;
}

aside .header p span {
  color: var(--color-muted);
}

aside nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

aside nav a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 0;
  width: 100%;
  color: var(--color-foreground-secondary);
  font-size: 1rem;
  text-align: center;
}

aside nav a:not(.disabled):hover {
  color: var(--color-foreground);
}

aside nav a.active {
  border-color: var(--color-border);
  background-color: var(--color-background-tertiary);
  color: var(--color-foreground);
}

aside nav a.disabled {
  cursor: not-allowed;
}

aside footer {
  color: var(--color-muted);
  font-size: 0.875rem;
  text-align: center;
}

main {
  padding: 20px 80px;
  width: 100%;
  min-height: 100dvh;
  overflow-y: auto;
}

main h1.title {
  margin-bottom: 20px;
  color: var(--color-foreground);
  font-weight: 700;
  font-size: 2rem;
}

/* HOME */
#home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

#home .hero {
  display: flex;
  flex-direction: column;
}

#home .hero h1 {
  margin: 5px 0;
  font-weight: 700;
  font-size: 4rem;
  line-height: 1.2;
  text-transform: uppercase;
}

#home .hero .about {
  margin-bottom: 20px;
  color: var(--color-foreground-secondary);
  font-size: 1rem;
  line-height: 1.2;
}

#home .hero .about span {
  color: var(--color-green-text);
}

#home .hero .btns,
#home .hero .social-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

#home .code .container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-background-secondary);
  padding: 20px;
}

#home .code .top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 5px 10px;
}

#home .code .code-box {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-background-tertiary);
  padding: 10px;
  width: 400px;
  max-width: 100%;
  color: var(--color-muted);
}

#home .code .code-box span:first-of-type {
  color: var(--color-purple-text);
}

#home .code .code-box span:not(:first-of-type) {
  color: var(--color-orange-text);
}

/* LOCKED */
.locked {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  width: 100%;
  height: 100dvh;
}

.locked .icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  width: 100px;
  height: 100px;
}

.locked .icon-wrapper i {
  color: var(--color-on-primary);
  font-size: 5rem;
}

.locked h1 {
  color: var(--color-foreground);
  font-size: 2rem;
}

.locked p {
  color: var(--color-foreground-secondary);
  font-size: 1.25rem;
  text-align: center;
}

/* PROJECTS */
#projects .title {
  margin-bottom: 20px;
  color: var(--color-foreground);
  font-weight: 700;
  font-size: 2rem;
}

#projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  place-items: center;
  gap: 20px;
  margin-bottom: 100px;
  width: 100%;
  height: fit-content;
}

/* PROJECT CARD */
.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-background-secondary);
  padding: 20px;
  width: 100%;
  max-width: 400px;
  height: 100%;
}

.project-card img {
  border-radius: 8px;
  width: auto;
  height: 200px;
  object-fit: cover;
}

.project-card .bottom {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.project-card .bottom h2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px 10px;
  color: var(--color-foreground);
  font-weight: 700;
  font-size: 1.25rem;
  text-wrap: nowrap;
}

.project-card .bottom p {
  color: var(--color-foreground-secondary);
  font-size: 0.875rem;
}

.project-card .bottom .links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-left: 10px;
  width: 100%;
}

/* BLOG */
#update,
#project {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: 100dvh;
  overflow-y: scroll;
}

.blog-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 100px;
  width: 100%;
  height: fit-content;
  text-align: left;
}

.blog-container .top img {
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  height: auto;
}

.blog-container .top {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.blog-container .bottom {
  flex: 2;
  height: fit-content;
}

.blog-container .bottom .content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: fit-content;
  text-align: left;
}

.blog-container .tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px 10px;
}

.blog-container .links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.blog-container .bottom h1 {
  margin-bottom: 10px;
  text-align: center;
}

.blog-container .bottom p:not(.alert) {
  margin-bottom: 10px;
  color: var(--color-foreground-secondary);
  font-size: 1rem;
}

/* UPDATES */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 100px;
  width: 100%;
  height: fit-content;
}

/* UPDATE CARD */
.update-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-background-secondary);
  padding: 20px;
  width: 100%;
  height: 100%;
  max-height: 150px;
}

.update-card img {
  border-radius: 8px;
  width: auto;
  height: 100px;
  object-fit: cover;
}

.update-card .right {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  height: 90%;
}

.update-card .right h2 {
  flex-wrap: wrap;
  color: var(--color-foreground);
  font-weight: 700;
  font-size: 1.25rem;
  text-wrap: nowrap;
}

.update-card .right p {
  color: var(--color-foreground-secondary);
  font-size: 0.875rem;
}

/* UPDATE STYLES */
.blog-container .content ul {
  margin-bottom: 10px;
  padding-left: 20px;
  color: var(--color-foreground-secondary);
  font-size: 0.875rem;
}

.blog-container .content ul li {
  margin-bottom: 5px;
  padding-left: 10px;
  list-style: "-" !important;
}

.blog-container .content .no-space {
  margin-bottom: 0 !important;
}

.blog-container .content .alert {
  margin-bottom: 10px;
  width: 100%;
}

.blog-container .content .green {
  color: var(--color-green-text) !important;
}

.blog-container .content .red {
  color: var(--color-red-text) !important;
}

.blog-container .content .purple {
  color: var(--color-purple-text) !important;
}

.blog-container .content .orange {
  color: var(--color-orange-text) !important;
}

.blog-container .content .blue {
  color: var(--color-blue-text) !important;
}

.blog-container .content .primary-gradient {
  background: -webkit-linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  background-clip: text;
  color: var(--color-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-container .primary {
  color: var(--color-primary);
}

.blog-container .secondary {
  color: var(--color-secondary);
}

.blog-container .content h2 {
  margin-top: 20px;
  margin-bottom: 5px;
  color: var(--color-foreground);
  font-weight: 700;
  font-size: 1.25rem;
}

.blog-container .content h3 {
  margin: 5px 0;
  color: var(--color-foreground);
  font-weight: 600;
  font-size: 1.1rem;
}

.blog-container .content img {
  border-radius: 8px;
  width: 100%;
  max-width: 300px;
  height: auto;
}

.blog-container .content img.lg {
  max-width: 100%;
  height: auto;
}

.blog-container .content a {
  color: var(--color-blue-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-container .content .center {
  text-align: center;
}

.blog-container .imgs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.blog-container .imgs img {
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* MEDIA */
@media screen and (max-width: 1340px) {
  body {
    flex-direction: column;
  }

  aside {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 10px;
    width: 100%;
    height: 65px;
    min-height: unset;
    overflow-y: unset;
  }

  aside .header img {
    display: none;
  }

  aside nav {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  aside nav a {
    padding: 10px 15px;
    width: fit-content;
  }

  aside footer {
    display: none;
  }

  main {
    margin-top: 20px;
    height: 100%;
  }

  #home {
    flex-direction: column;
    gap: 40px;
  }

  #home .hero {
    align-items: center;
    text-align: center;
  }

  #home .code {
    margin-bottom: 100px;
    width: 100%;
  }

  #home .code .container {
    width: 100%;
  }

  #home .code .code-box {
    width: 100%;
  }

  .blog-container .top {
    margin-top: 0;
  }

  .blog-container .top img {
    max-width: 400px;
  }

  .locked {
    margin-top: 0;
    height: calc(100dvh - 85px);
    min-height: 0;
  }
}

@media screen and (max-width: 768px) {
  main {
    padding: 20px;
  }

  #home .hero h1 {
    margin-top: 20px;
    font-size: 2.5rem;
  }

  #home .hero .about {
    margin-bottom: 40px;
    font-size: 0.9rem;
  }

  #home .hero .btns {
    flex-direction: column;
    gap: 20px;
  }

  #home .code .code-box {
    width: 100%;
    overflow-x: auto;
    font-size: 0.9rem;
  }

  #home .code .code-box code {
    display: inline-block;
    width: 100%;
    text-wrap: nowrap;
    white-space: nowrap;
  }

  aside .header {
    display: none;
  }

  aside nav a {
    font-size: 0.9rem;
  }

  main h1.title {
    text-align: center;
  }

  .update-card {
    flex-direction: column;
    height: fit-content;
    max-height: unset;
  }

  .update-card img {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .update-card .right {
    align-items: center;
    width: 100%;
    height: auto;
    text-align: center;
  }

  .blog-container .imgs {
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (max-width: 400px) {
  #home .code .top {
    justify-content: center;
  }
}
