:root {
  --bg: #090d1a;
  --panel: rgba(19, 27, 47, 0.72);
  --line: #ffffff1f;
  --text: #e7ebff;
  --muted: #b6c0ea;
  --accent: #7b8cff;
  --accent-2: #5cf2c8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: radial-gradient(circle at top, #101a36, var(--bg) 45%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: min(1100px, 92%);
  margin: 1rem auto;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.5;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 220px;
  height: 220px;
  background: #5a64ff;
  top: 2rem;
  left: -3rem;
}

.orb-2 {
  width: 260px;
  height: 260px;
  background: #1fb0a4;
  right: -4rem;
  bottom: 10vh;
  animation-delay: -5s;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  position: sticky;
  top: 0.8rem;
  z-index: 5;
}

.glass,
.panel,
.repo-card,
.cert-item {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  user-select: none;
}

.brand {
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 0.8rem;
  color: var(--text);
  text-decoration: none;
  font-size: larger;
  font-weight: 800;
  transition: all 0.2s;
}

.brand:hover {
  border-radius: 12px;
  background-color: var(--bg);
  color: var(--accent);
}

.logo {
  border: 0px solid var(--line);
  transition: all 0.2s;
}

.brand:hover .logo {
  border: 1px solid var(--accent);
  transform: scale(1.1);
}

nav {
  display: flex;
  gap: 0.8rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: all 0.2s;
}

nav a.active,
nav a:hover {
  background: rgba(123, 140, 255, 0.2);
  color: white;
}

.hero {
  margin-top: 1.5rem;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.2rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.tag,
.muted {
  color: var(--muted);
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-text-alt {
  background: linear-gradient(100deg, orange, coral);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
}

.btn:hover {
  transform: scale(1.1);
  border: 1px solid var(--accent);
}

.primary {
  background: linear-gradient(120deg, var(--accent), #5e65d9);
  border: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  max-height: max-content;
  user-select: text;
}

.profile-photo {
  border: 1px dashed var(--accent);
  border-radius: 12px;
  height: 370px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  margin-bottom: 0.8rem;
  perspective: 1000px;
  cursor: pointer;
}

.profile-photo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease-in-out;
  transform-style: preserve-3d;
}

.profile-photo:hover .profile-photo-inner {
  transform: rotateY(-180deg);
}

.profile-photo-front,
.profile-photo-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.profile-photo-back {
  transform: rotateY(180deg);
  background: rgba(123, 140, 255, 0.1);
  /* border: 1px dashed var(--accent); */
}

.email {
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
  text-decoration: underline;
}

.email:hover {
  text-decoration: none;
  color: var(--accent);
}

.panel {
  padding: 1.3rem;
  margin-top: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  user-select: none;
}

.chips span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  transition: all 0.2s;
}

.chips span:hover {
  border: 1px solid var(--accent);
  background: rgba(255, 255, 255, 0.158);
}

.chips .tags:hover {
  transform: scale(1.1);
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.timeline article {
  border-left: 3px solid var(--accent);
  padding-left: 0.8rem;
}

.footer {
  text-align: center;
  color: var(--muted);
  margin: 2rem auto;
}

.controls {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

input {
  padding: 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

input[type="date"] {
  padding: 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: all 0.2s;
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
  cursor: pointer;
}

input[type="date"]:hover {
  border: 1px solid var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.repo-grid,
.stack {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.repo-card,
.cert-item {
  padding: 1rem;
}

.meta {
  display: flex;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.certificate-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}

.certificates-layout {
  margin-top: 1.5rem;
}

.cert-item .cert-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.75rem;
  border-radius: 4px;
}

.cert-item {
  transition: all 0.2s ease;
}

.cert-item:hover {
  border-radius: 8px;
  background-color: rgba(30, 41, 77, 0.72);
}

.reveal-up,
.reveal-right {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.8s ease forwards;
}

.reveal-right {
  transform: translateX(18px);
}

.logo {
  width: 75px;
  height: 75px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* From Uiverse.io by Praashoo7 */ 
.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

.up {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
}

.down {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
}

.card1 {
  width: 90px;
  height: 90px;
  outline: none;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: 90px 5px 5px 5px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  transition: .2s ease-in-out;
}

.instagram {
  margin-top: 1.5em;
  margin-left: 1.2em;
  fill: #cc39a4;
}

.card2 {
  width: 90px;
  height: 90px;
  outline: none;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: 5px 90px 5px 5px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  transition: .2s ease-in-out;
}

.telegram {
  margin-top: 1.5em;
  margin-left: -.9em;
  fill: #03A9F4;
}

.card3 {
  width: 90px;
  height: 90px;
  outline: none;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: 5px 5px 5px 90px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  transition: .2s ease-in-out;
}

.github {
  margin-top: -.6em;
  margin-left: 1.2em;
  fill: white;
}

.card4 {
  width: 90px;
  height: 90px;
  outline: none;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: 5px 5px 90px 5px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  transition: .2s ease-in-out;
}

.discord {
  margin-top: -.9em;
  margin-left: -1.2em;
  fill: #8c9eff;
}

.card1:hover {
  cursor: pointer;
  scale: 1.1;
  background-color: #cc39a4;
}

.card1:hover .instagram {
  fill: white;
}

.card2:hover {
  cursor: pointer;
  scale: 1.1;
  background-color: #03A9F4;
}

.card2:hover .telegram {
  fill: white;
}

.card3:hover {
  cursor: pointer;
  scale: 1.1;
  background-color: black;
}

.card3:hover .github {
  fill: white;
}

.card4:hover {
  cursor: pointer;
  scale: 1.1;
  background-color: #8c9eff;
}

.card4:hover .discord {
  fill: white;
}

/* End of uiverse.io element */

code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  user-select: text;
}

.quote-section {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.quote-box {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.quote-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  color: #f3f3f3;
}

.quote-author {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.8;
  text-align: right;
}

.quote-loading {
  margin: 0;
  opacity: 0.7;
  font-size: 0.9rem;
}

#refreshQuoteBtn {
  margin-top: 0.8rem;
  font-size: 10px;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  50% {
    transform: translateY(-24px) scale(1.05);
  }
}

.post-body {
  max-height: 200px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.8rem 0;
}

.post-body.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--panel));
  pointer-events: none;
}

.post-body.expanded {
  max-height: none;
}

.post-body.expanded::after {
  display: none;
}

.expand-btn {
  display: block;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.expand-btn:hover {
  background: rgba(123, 140, 255, 0.1);
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: 1fr;
  }
}
