@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
* {
    box-sizing: border-box
}

html {
    line-height: 1.6
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #afbac4;
    min-height: 100vh;
    background-image:
        linear-gradient(transparent 24px, rgba(255, 255, 255, 0.03) 1px),
        linear-gradient(90deg, transparent 24px, rgba(255, 255, 255, 0.03) 1px);
    background-size: 25px 25px;
}

h1,h2,h3,h4,h5,h6 {
    color: #fff
}

a {
    color: #7f5af0;
    transition: color .35s;
    text-decoration: none
}

a:hover {
    color: #fff
}

pre code {
    font-size: .8em
}

::selection {
    background: rgba(175,186,196,.25)
}

::-moz-selection {
    background: rgba(175,186,196,.25)
}

.app-header {
    padding: 2.5em;
    background: #000;
    text-align: center
}
.app-header-nav-item {
    cursor: pointer;
}

.app-header-avatar {
    position: relative;
    display: inline-block;
    width: 15rem;
    height: 15rem;
}

.app-header-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 0.5rem solid #7f5af0;
    display: block;
}

.app-header-avatar::before {
    content: "";
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    right: -0.5rem;
    bottom: -0.5rem;
    border-radius: 50%;
    border: 0.2rem dashed #7f5af0;
    animation: rotate 7s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.app-container {
    padding: 2.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.75;
    max-width: 720px;
    margin: 0 auto;
}

.app-header-social {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #fff
}

.app-header-social a:not(:last-child) {
    margin-right: .4em
}

.app-header-title {
    color: #fff;
    display: block;
    font-size: 2em;
    margin: .67em 0;
    font-weight: 700
}

@media(min-width: 940px) {
    .app-header {
        position:fixed;
        top: 0;
        left: 0;
        width: 20rem;
        min-height: 100vh
    }

    .app-container {
        max-width: 65rem;
        margin-left: 24rem
    }
}

.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-top: -.125em
}

.pagination {
    display: block;
    list-style: none;
    padding: 0;
    font-size: .8em;
    text-align: center;
    margin: 3em 0
}

.page-item {
    display: inline-block
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem
}

.page-item.active .page-link {
    color: #fff;
    border-radius: 2em;
    background: #7f5af0
}

.post-title {
    color: #fff
}

.post-meta>div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .2em;
    font-size: .8em
}

.post-meta>div>.icon {
    margin-right: .4em
}

.post-content>pre,.post-content .highlight {
    margin: 1em 0
}

.post-content>pre,.post-content .highlight>pre,.post-content .highlight>div {
    border-left: .4em solid rgba(0,255,111,.8);
    padding: 1em
}

.post-content blockquote {
    border-left: .4em solid rgba(0,255,111,.8);
    margin: 1em 0;
    padding: .5em 1em;
    background: #000
}

.post-content blockquote p {
    margin: .5em 0
}

.post-content img {
    max-width: 100%
}

.posts-list {
    padding: 0
}

.posts-list-item {
    list-style: none;
    padding: .4em 0
}

.posts-list-item:not(:last-child) {
    border-bottom: 1px dashed rgba(255,255,255,.3)
}

.posts-list-item-description {
    display: flex;
    align-items: center;
    font-size: .8em
}

.posts-list-item-description>.icon {
    margin-right: .4em
}

.posts-list-item-separator {
    margin: 0 .4em
}

.tag {
    display: inline-block;
    margin-right: .2em;
    padding: 0 .6em;
    font-size: .9em;
    border-radius: .2em;
    white-space: nowrap;
    background: rgba(255,255,255,.1);
    transition: color .35s,background .35s
}

.tag:hover {
    transition: color .25s,background .05s;
    background: rgba(255,255,255,.3)
}

.tags-list {
    padding: 0
}

.tags-list-item {
    display: flex;
    align-items: center;
    list-style: none;
    padding: .4em 0
}

.tags-list-item>.icon {
    margin-right: .4em
}

.tags-list-item:not(:last-child) {
    border-bottom: 1px dashed rgba(255,255,255,.3)
}

@media(min-width: 450px) {
    .tags-list {
        display:flex;
        flex-wrap: wrap
    }

    .tags-list-item {
        width: calc(50% - 1em)
    }

    .tags-list-item:nth-child(even) {
        margin-left: 1em
    }

    .tags-list-item:nth-last-child(2) {
        border: none
    }
}

 footer {
   padding: 2rem 0;
   font-weight: 300;
   font-size: 0.9rem;
   color: var(--text-color);
   text-align: end;
 }


/* img switch & glitch anime  */
#dynamic-image {
  transition: opacity 0.3s ease-in-out;
}

.glitch-effect {
  animation: glitch 0.4s steps(2, end);
}

@keyframes glitch {
  0% {
    transform: translate(0);
    opacity: 0.9;
  }
  20% {
    transform: translate(-5px, 2px);
  }
  40% {
    transform: translate(5px, -2px);
    opacity: 0.6;
  }
  60% {
    transform: translate(-3px, 1px);
  }
  80% {
    transform: translate(3px, -1px);
    opacity: 0.8;
  }
  100% {
    transform: translate(0);
    opacity: 1;
  }
}

/* social cards */
.social-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f5f5f5;
  border-radius: 8px;
  text-decoration: none;
  color: #222;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease-in-out;
  min-width: 221px;
}

.social-card img {
  width: 24px;
  height: 24px;
}

.social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: #7f5af0;
}


.slogan {
    display: inline-block;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #9997FF;
    font-size: 16px;
    position: relative;
    animation: 1s linear infinite alternate-reverse glitch-skew;
    margin: 4px;
}
.slogan::before, .slogan::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}
.slogan::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: 5s linear infinite alternate-reverse glitch-anim;
}
.slogan::after {
    left: -2px;
    text-shadow: -2px 0 #00fff2, 2px 2px #ff00c1;
    animation: 1s linear infinite alternate-reverse glitch-anim2;
}
@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 30px, 0); transform: skew(.5deg); }
    5% { clip: rect(92px, 9999px, 93px, 0); transform: skew(.8deg); }
    10% { clip: rect(68px, 9999px, 34px, 0); transform: skew(.1deg); }
    15% { clip: rect(22px, 9999px, 10px, 0); transform: skew(.6deg); }
    20% { clip: rect(56px, 9999px, 98px, 0); transform: skew(.4deg); }
    25% { clip: rect(3px, 9999px, 23px, 0); transform: skew(.7deg); }
    30% { clip: rect(48px, 9999px, 23px, 0); transform: skew(.2deg); }
    35% { clip: rect(54px, 9999px, 86px, 0); transform: skew(.9deg); }
    40% { clip: rect(10px, 9999px, 12px, 0); transform: skew(.3deg); }
    45% { clip: rect(43px, 9999px, 59px, 0); transform: skew(.5deg); }
    50% { clip: rect(35px, 9999px, 58px, 0); transform: skew(.7deg); }
    55% { clip: rect(21px, 9999px, 73px, 0); transform: skew(.1deg); }
    60% { clip: rect(90px, 9999px, 76px, 0); transform: skew(.6deg); }
    65% { clip: rect(6px, 9999px, 53px, 0); transform: skew(.4deg); }
    70% { clip: rect(57px, 9999px, 95px, 0); transform: skew(.8deg); }
    75% { clip: rect(20px, 9999px, 78px, 0); transform: skew(.2deg); }
    80% { clip: rect(82px, 9999px, 24px, 0); transform: skew(.9deg); }
    85% { clip: rect(62px, 9999px, 53px, 0); transform: skew(.3deg); }
    90% { clip: rect(39px, 9999px, 63px, 0); transform: skew(.5deg); }
    95% { clip: rect(56px, 9999px, 17px, 0); transform: skew(.7deg); }
    100% { clip: rect(5px, 9999px, 53px, 0); transform: skew(.1deg); }
} 
@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 33px, 0); }
    15% { clip: rect(87px, 9999px, 74px, 0); }
    30% { clip: rect(18px, 9999px, 36px, 0); }
    45% { clip: rect(25px, 9999px, 6px, 0); }
    60% { clip: rect(73px, 9999px, 55px, 0); }
    75% { clip: rect(56px, 9999px, 88px, 0); }
    90% { clip: rect(43px, 9999px, 15px, 0); }
    100% { clip: rect(78px, 9999px, 30px, 0); }
}
 @keyframes glitch-skew {
     0%, 40% { transform: skew(-2deg); }
     10%, 100%, 50% { transform: skew(-1deg); }
     20%, 90% { transform: skew(3deg); }
     30%, 80% { transform: skew(1deg); }
     60% { transform: skew(2deg); }
     70% { transform: skew(-3deg); }
 }


.lang-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    width: 94%;
    margin: auto;
    padding: 20px;
}
.card {
    perspective: 800px; 
    position: relative; 
    height: 100px;
    width: 100px;
}
.card-inner {
    position: absolute; 
    width: 80px;
    height: 80px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
    transform-origin: center; 
}
.card:hover .card-inner {
    transform: rotateY(180deg);
    }
.card-front, .card-back {
    position: absolute;
    width: 80px;
    height: 80px;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.card-front {
    background: white;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.card-back {
    background: white;
    color: #333;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}
.card h3 {
    margin: 0;
    color: #7f5af0;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.card p {
    margin: 10px 0;
    font-size: 1.1em;
    font-weight: bold;
}
