@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@700&display=swap');

@font-face {
    font-family: 'Chomsky';
    src: url('assets/Chomsky.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('assets/cursor-default.svg') 6 4, auto;
}

::selection {
    background-color: #e0e0e0;
    color: #000000;
}

::-moz-selection {
    background-color: #e0e0e0;
    color: #000000;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.snap-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.6) transparent;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0.05) 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 1) 50%,
            rgba(255, 255, 255, 0.3) 100%);
}

.header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2.5rem;
}

.title {
    font-family: 'Chomsky', 'ChomskyRegular', serif;
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: normal;
    color: #ffffff;
    letter-spacing: 0.02em;
    user-select: none;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    text-align: center;
}

.navbar {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.6rem 2.5rem;
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.nav-menu li {
    display: inline-flex;
    align-items: center;
}

.nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Times New Roman', 'Georgia', serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.nav-menu li a:hover {
    opacity: 0.7;
}

.nav-menu .separator {
    color: #ffffff;
    font-family: 'Times New Roman', 'Georgia', serif;
    font-size: 0.85rem;
    margin: 0 0.35rem;
    user-select: none;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .navbar {
        justify-content: center;
        padding: 0.6rem 1rem;
    }

    .nav-menu {
        justify-content: center;
    }

    .me-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .section-title::after {
        margin: 0.4rem auto 0;
    }

    .me-avatar {
        width: 150px;
        height: 150px;
    }
}


.main {
    width: 100%;
    max-width: 960px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

section {
    scroll-margin-top: 2rem;
}

.section-title {
    font-family: 'Times New Roman', 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: normal;
    text-transform: lowercase;
    color: #ffffff;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4);
    margin-top: 0.4rem;
}


.me-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.me-content {
    flex: 1;
}

.me-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #d1d1d1;
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
}

.me-text strong {
    color: #ffffff;
}


.me-avatar-wrapper {
    flex-shrink: 0;
    position: relative;
}

.me-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.me-avatar:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}


.footer {
    width: 100%;
    padding: 3rem 1rem 1rem 1rem;
    text-align: center;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.85);
}

.footer-curve {
    width: 100%;
    height: 15px;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.footer-dot-text {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(40px, 10vw, 170px);
    font-weight: 700;
    margin: 0;
    background: radial-gradient(circle, #ffffff 30%, transparent 35%);
    background-size: 8px 8px;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
    animation: textFlicker 4s infinite alternate;
    user-select: none;
    line-height: 1;
}

@keyframes textFlicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.9));
    }

    20%,
    24%,
    55% {
        opacity: 0.3;
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    }
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

a,
button,
.nav-link,
.card-link,
.show-more-btn {
    cursor: url('assets/cursor-pointer.svg') 9 2, pointer !important;
}

.card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.card-title {
    font-family: 'Times New Roman', 'Georgia', serif;
    font-size: 1.25rem;
    font-weight: normal;
    color: #ffffff;
}

.card-desc {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.5;
}

.card-sub {
    font-size: 0.9rem;
    color: #aaaaaa;
}

.card-date {
    font-size: 0.8rem;
    color: #888888;
}

.card-link {
    color: #ffffff;
    font-size: 0.85rem;
    text-decoration: none;
    letter-spacing: 0.05em;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.card-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #e0e0e0;
}

.socials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
    align-items: center;
}

.social-chip {
    padding: 0.6rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.social-icon svg {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
}

.social-chip:hover {
    background-color: #ffffff;
    color: #000000;
}

.slack-interactive-chip {
    cursor: pointer;
}

.slack-active {
    background-color: #ffffff;
    color: #000000;
    cursor: default;
    padding-right: 0.2rem;
}

.slack-input {
    border: none;
    background: transparent;
    color: #000000;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    width: 100px;
}

.slack-input::placeholder {
    color: #888888;
}

.slack-submit {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slack-error {
    color: #ff3333;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

.movie-year {
    font-size: 0.9rem;
    color: #888888;
    font-weight: normal;
}

.movie-rating {
    font-size: 0.85rem;
    color: #e0e0e0;
    font-weight: bold;
}

.blog-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.blog-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #dddddd;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.drag-handle {
    cursor: grab;
    padding: 0 0.5rem;
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    user-select: none;
    font-size: 1.2rem;
}

.drag-handle:active {
    cursor: grabbing;
}

.editor-card.dragging {
    opacity: 0.5;
    border: 1px dashed #ffffff;
}

.collapsed .hidden-card {
    display: none !important;
}

.show-more-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.show-more-btn {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1.5rem;
    font-family: 'Georgia', serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.show-more-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

#end {
    display: flex;
    justify-content: center;
    margin: 4rem 0 -2.5rem 0;
    position: relative;
    z-index: 10;
}

#end h2 {
    display: flex;
    align-items: center;
    font-family: 'Chomsky', serif;
    font-size: 2rem;
    font-weight: normal;
}

#end h2::before,
#end h2::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 0 1rem;
}