* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #11111b;
    --card-color: #11111b;
    --text-color: #cdd6f4;
    --accent-color: #b4befe;
    --link-hover-color: #cba6f7;
    --subtext-color: #a6adc8;
    --border-color: #45475a;
    --glow-mauve: #cba6f7;
    --glow-blue: #89b4fa;
}

body {
    font-family: 'Fira Code', 'JetBrains Mono', 'Cascadia Code', 'Courier New', monospace;
    background-color: black;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.container {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
}

.card {
    background-color: rgba(30, 30, 46, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 32px;
    position: relative;
    border: 2px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(var(--border-angle), var(--glow-mauve), var(--glow-blue));
    animation: borderRotate 8s linear infinite;
}

@property --border-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes borderRotate {
    0% {
        --border-angle: 0deg;
    }
    100% {
        --border-angle: 360deg;
    }
}

.profile {
    text-align: center;
    margin-bottom: 40px;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.avatar {
    width: 200px;
    height: 200px;
    border: 2px solid var(--accent-color);
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.avatar:hover {
    opacity: 0.85;
}

.avatar-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    width: 28px;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.15s ease;
    padding: 0;
    line-height: 1;
}

.avatar-nav:hover {
    background: rgba(180, 190, 254, 0.1);
    border-color: var(--accent-color);
}

.avatar-nav-prev {
    left: -36px;
}

.avatar-nav-next {
    right: -36px;
}

.name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
    letter-spacing: -0.03em;
}

.typing-cursor::after {
    content: '▋';
    color: var(--accent-color);
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.typing-hidden {
    opacity: 0;
}

.profile-info {
    font-size: 14px;
    color: var(--subtext-color);
    margin-bottom: 12px;
    font-weight: 500;
}

.bio {
    font-size: 14px;
    color: var(--subtext-color);
    max-width: 500px;
    margin: 0 auto;
    font-weight: 500;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.section-header {
    margin-top: 28px;
    margin-bottom: 12px;
    border-left: 2px solid var(--accent-color);
    padding-left: 12px;
}

.section-header:first-child {
    margin-top: 0;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 4px;
    text-transform: lowercase;
}

.section-note {
    font-size: 13px;
    color: var(--subtext-color);
    margin-top: 4px;
    font-style: italic;
    font-weight: 500;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.15s ease;
}

.link-item:hover {
    border-left-color: var(--accent-color);
    background: rgba(180, 190, 254, 0.05);
}

.link-icon {
    font-size: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.link-favicon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.link-title {
    font-size: 15px;
    font-weight: 600;
    flex-grow: 1;
}

.link-arrow {
    font-size: 14px;
    opacity: 0.4;
    transition: opacity 0.15s ease;
}

.link-item:hover .link-arrow {
    opacity: 1;
}

.social {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.15s ease;
    font-size: 16px;
}

.social-favicon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.social-link:hover {
    background: rgba(180, 190, 254, 0.1);
    border-color: var(--accent-color);
}

.footer {
    text-align: center;
    margin-top: 24px;
    padding: 12px;
    color: var(#11111b);
    font-size: 11px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2147483648;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 0 80px;
}

.modal-content {
    position: relative;
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    border: 2px solid var(--accent-color);
    object-fit: contain;
}

.modal-tagline {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    padding: 0 20px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 40px;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s ease;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 36px;
    font-weight: 700;
    transition: all 0.15s ease;
    padding: 0;
    line-height: 1;
    z-index: 2147483649;
}

.modal-nav:hover {
    background: rgba(180, 190, 254, 0.1);
    border-color: var(--accent-color);
}

.modal-nav-prev {
    left: 20px;
}

.modal-nav-next {
    right: 20px;
}

@media (max-width: 1024px) {
    .avatar {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .avatar {
        width: 140px;
        height: 140px;
    }

    .name {
        font-size: 26px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 12px;
    }

    .card {
        padding: 28px 20px;
    }

    .name {
        font-size: 24px;
    }

    .profile-info {
        font-size: 13px;
    }

    .bio {
        font-size: 13px;
    }

    .section-title {
        font-size: 15px;
    }

    .section-note {
        font-size: 12px;
    }

    .link-item {
        padding: 12px 14px;
    }

    .link-title {
        font-size: 14px;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }

    .avatar-nav {
        width: 24px;
        height: 24px;
        font-size: 18px;
    }

    .avatar-nav-prev {
        left: -30px;
    }

    .avatar-nav-next {
        right: -30px;
    }

    .modal-tagline {
        font-size: 14px;
    }

    .modal-close {
        font-size: 32px;
        top: -36px;
    }

    .modal-nav {
        width: 36px;
        height: 36px;
        font-size: 28px;
    }

    .modal-nav-prev {
        left: 10px;
    }

    .modal-nav-next {
        right: 10px;
    }

    .modal {
        padding: 0 50px;
    }
}
