* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {

    --bg-primary: #f1faf4;
    --bg-secondary: #ffffff;
    --text-primary: #070606;
    --text-secondary: #666;
    --border-color: rgba(0, 0, 0, 0.1);
    --overlay-bg: rgba(0, 0, 0, 0.6);
    --card-bg: rgba(241, 250, 244, 0.95);
    --skills-bg: rgba(255, 254, 254, 0.95);
    --hobby-bg: rgba(240, 242, 245, 0.8);
    --about-bg: rgba(240, 242, 245, 0.8);
}

[data-theme="dark"] {

    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: rgba(255, 255, 255, 0.1);
    --overlay-bg: rgba(0, 0, 0, 0.8);
    --card-bg: rgba(45, 45, 45, 0.95);
    --skills-bg: rgba(35, 35, 35, 0.95);
    --hobby-bg: rgba(50, 50, 50, 0.8);
    --about-bg: rgba(50, 50, 50, 0.8);
}

body {
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body:not(.loaded) {
    overflow: hidden;
}

body:not(.loaded) > :not(.intro-screen) {
    opacity: 0;
    pointer-events: none;
}

.intro-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000303;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 12px;
    user-select: none;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.intro-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #000 0%, #010202 50%, #000 100%);
}

.intro-stars {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        radial-gradient(circle at 6% 29%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.8px),
        radial-gradient(circle at 12% 83%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.8px),
        radial-gradient(circle at 24% 9%, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.8px),
        radial-gradient(circle at 37% 54%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.8px),
        radial-gradient(circle at 48% 18%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.8px),
        radial-gradient(circle at 62% 74%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.8px),
        radial-gradient(circle at 76% 36%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.8px),
        radial-gradient(circle at 89% 67%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.8px),
        radial-gradient(circle at 96% 21%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.8px),
        radial-gradient(circle at 52% 43%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.8px),
        radial-gradient(circle at 18% 61%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.8px),
        radial-gradient(circle at 71% 8%, rgba(255, 255, 255, 0.48) 0 1px, transparent 1.8px),
        radial-gradient(circle at 82% 88%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.8px);
    opacity: 0.75;
    animation: starTwinkle 3.4s ease-in-out infinite alternate;
}

.shooting-star {
    position: absolute;
    z-index: 2;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.9),
        0 0 18px rgba(120, 190, 255, 0.45);
    opacity: 0;
}

.shooting-star::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -22px;
    width: 1px;
    height: 24px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.45));
    transform: translateX(-50%);
}

.shooting-star::after {
    display: none;
}

.star-one {
    left: 12%;
    top: -8%;
    animation: fallingLight 7s linear infinite 0.2s;
}

.star-two {
    left: 49%;
    top: -8%;
    animation: fallingLight 8.5s linear infinite 2.4s;
}

.star-three {
    left: 73%;
    top: -8%;
    animation: fallingLight 7.8s linear infinite 4.3s;
}

.intro-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.intro-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    transform: translateY(-10px);
}

.intro-name {
    position: relative;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.34);
    animation: textBlink 1.4s ease-in-out infinite, glitchShake 2.6s infinite;
    text-shadow:
        1px 0 rgba(0, 255, 255, 0.5),
        -1px 0 rgba(255, 0, 90, 0.45),
        0 0 10px rgba(255, 255, 255, 0.22);
}

.intro-name::before,
.intro-name::after {
    content: "@nmtkiet";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
}

.intro-name::before {
    color: rgba(0, 255, 255, 0.45);
    transform: translateX(-2px);
    clip-path: inset(0 0 58% 0);
    animation: glitchWave 1.8s infinite linear alternate-reverse;
}

.intro-name::after {
    color: rgba(255, 0, 90, 0.38);
    transform: translateX(2px);
    clip-path: inset(52% 0 0 0);
    animation: glitchWave 1.4s infinite linear alternate;
}

.intro-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background: #000;
}

.intro-dim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.25) 45%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.intro-start {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

@keyframes textBlink {
    0%, 100% {
        opacity: 0.28;
        filter: blur(0.2px);
    }
    50% {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes glitchShake {
    0%, 88%, 100% { transform: translate(0, 0) skewX(0deg); }
    89% { transform: translate(-1px, 1px) skewX(-8deg); }
    90% { transform: translate(2px, -1px) skewX(7deg); }
    91% { transform: translate(-2px, 0) skewX(-5deg); }
    92% { transform: translate(1px, 1px) skewX(4deg); }
}

@keyframes glitchWave {
    0% { clip-path: inset(0 0 78% 0); transform: translate(-2px, -1px); }
    18% { clip-path: inset(18% 0 55% 0); transform: translate(2px, 1px); }
    36% { clip-path: inset(42% 0 36% 0); transform: translate(-3px, 0); }
    54% { clip-path: inset(64% 0 18% 0); transform: translate(3px, -1px); }
    72% { clip-path: inset(22% 0 60% 0); transform: translate(-1px, 1px); }
    100% { clip-path: inset(75% 0 0 0); transform: translate(2px, 0); }
}

@keyframes starTwinkle {
    from { opacity: 0.35; }
    to { opacity: 0.85; }
}

@keyframes fallingLight {
    0% {
        opacity: 0;
        transform: translate3d(0, -12vh, 0) scale(0.7);
    }
    10% {
        opacity: 1;
    }
    55% {
        opacity: 0.95;
    }
    100% {
        opacity: 0;
        transform: translate3d(0, 112vh, 0) scale(1.05);
    }
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-bg);
    z-index: -1;
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    transform: rotate(180deg);
}

[data-theme="light"] .theme-toggle .fa-moon {
    transform: rotate(-180deg);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.profile-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.cover-photo {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    padding: 20px;
    position: relative;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--bg-secondary);
    background-color: var(--hobby-bg);
    position: absolute;
    left: 20px;
    top: -75px;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: border-color 0.3s ease;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.frame {
    position: absolute;
    width: 160px;
    height: 160px;
    top: -5px;
    left: -5px;
    z-index: 2;
    pointer-events: none;
}

.name-bio {
    margin-left: 160px;
    margin-bottom: 20px;
}

h1 {
    color: #1877f2;
    margin-bottom: 10px;
}

[data-theme="dark"] h1 {
    color: #4dabf7;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 15px 0 25px;
    z-index: 2;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(18, 22, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    color: #fff !important;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.social-link.facebook:hover {
    border-color: rgba(24, 119, 242, 0.5);
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.4);
    color: #1877f2 !important;
}

.social-link.discord:hover {
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
    color: #5865F2 !important;
}

.social-link.telegram:hover {
    border-color: rgba(36, 161, 222, 0.5);
    box-shadow: 0 0 20px rgba(36, 161, 222, 0.4);
    color: #24a1de !important;
}

.facebook {
    color: #1877f2;
}

.telegram {
    color: #0088cc;
}

.discord {
    color: #5865F2;
}

.github {
    color: #1529e0;
}

.skills-section {
    background-color: var(--skills-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.skills-title {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    position: relative;
    transition: color 0.3s ease;
}

.skills-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #3498db;
    margin: 10px auto 0;
}

.about-content {
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

p {
    margin-bottom: 15px;
}

.animated-text span {
    display: inline-block;
    animation: waveAnimation 2s infinite;
}

.skill {
    margin-bottom: 25px;
}

.skill-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.skill-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: white;
    font-size: 20px;
}

.java {
    background-color: #f89820;
}

.python {
    background-color: #306998;
}

.cpp {
    background-color: #00599C;
}

.golang {
    background-color: #00ADD8;
}

.nodejs {
    background-color: #339933;
}

.nextjs {
    background-color: #0070f3;
}

.linux {
    background-color: #FCC624;
}

.sql {
    background-color: #336791;
}

.skill-name {
    font-weight: bold;
    font-size: 1.2rem;
}

.skill-percentage {
    margin-left: auto;
    color: #666;
}

.progress-bar {
    height: 10px;
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 5px;
}

.java-bar {
    width: 30%;
    background-color: #f89820;
}

.python-bar {
    width: 60%;
    background-color: #306998;
}

.cpp-bar {
    width: 5%;
    background-color: #00599C;
}

.golang-bar {
    width: 5%;
    background-color: #00ADD8;
}

.nodejs-bar {
    width: 75%;
    background-color: #339933;
}

.nextjs-bar {
    width: 70%;
    background-color: #0070f3;
}

.linux-bar {
    width: 40%;
    background-color: #FCC624;
}

.sql-bar {
    width: 55%;
    background-color: #336791;
}

.hobbies {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.hobby {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    background-color: var(--hobby-bg);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.hobby:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hobby i {
    font-size: 2rem;
    color: #1877f2;
    margin-bottom: 10px;
}

[data-theme="dark"] .hobby i {
    color: #4dabf7;
}

.hobby h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.about-content {
    padding: 10px;
    background-color: var(--about-bg);
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.discord-status {
    background-color: rgba(88, 101, 242, 0.1);
    border: 2px solid #5865F2;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.discord-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

.discord-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.discord-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    border: 3px solid #5865F2;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid white;
}

.status-online { background-color: #23a55a; }
.status-dot.status-online {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8' fill='%23121616' /><circle cx='8' cy='8' r='5.5' fill='%2323a55a' /></svg>");
    box-shadow: 0 0 10px rgba(35, 165, 90, 0.8) !important;
}
.discord-avatar-wrap.status-online { border-color: #23a55a; box-shadow: 0 0 15px rgba(35, 165, 90, 0.4); }

.status-idle { background-color: #f0b232; }
.status-dot.status-idle {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M12 12a6 6 0 1 1 0-8 6 6 0 0 0 0 8z' fill='%23f0b232' stroke='%23121616' stroke-width='2.5' stroke-linejoin='round' /></svg>");
    box-shadow: 0 0 10px rgba(240, 178, 50, 0.8) !important;
}
.discord-avatar-wrap.status-idle { border-color: #f0b232; box-shadow: 0 0 15px rgba(240, 178, 50, 0.4); }

.status-dnd { background-color: #f23f43; }
.status-dot.status-dnd {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8' fill='%23121616' /><circle cx='8' cy='8' r='5.5' fill='%23f23f43' /><rect x='4.25' y='6.75' width='7.5' height='2.5' rx='1.25' fill='%23121616' /></svg>");
    box-shadow: 0 0 10px rgba(242, 63, 67, 0.8) !important;
}
.discord-avatar-wrap.status-dnd { border-color: #f23f43; box-shadow: 0 0 15px rgba(242, 63, 67, 0.4); }

.status-offline { background-color: #80848e; }
.status-dot.status-offline {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='5.5' fill='none' stroke='%23121616' stroke-width='5' /><circle cx='8' cy='8' r='5.5' fill='none' stroke='%2380848e' stroke-width='2' /></svg>");
    box-shadow: none !important;
}
.discord-avatar-wrap.status-offline { border-color: #80848e; box-shadow: none; }

.discord-info h3 {
    color: #5865F2;
    margin: 0;
    font-size: 1.3rem;
}

.discord-info p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.discord-activity {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
}

.activity-title {
    font-weight: bold;
    color: #5865F2;
    margin-bottom: 5px;
}

.activity-details {
    font-size: 0.9rem;
    color: #333;
}

.discord-badges {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.discord-badge {
    background-color: #5865F2;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.loading-status {
    text-align: center;
    color: #666;
    font-style: italic;
}

.player {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.retry-btn {
    background-color: #f23f43;
    border: none;
    border-radius: 5px;
    color: white;
    padding: 8px 15px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.retry-btn:hover {
    background-color: #d4353e;
}

.track-info {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.time {
    font-size: 14px;
    width: 40px;
}

.buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.buttons button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

input[type="range"] {
    flex: 1;
    margin: 0 10px;
    accent-color: white;
}

.volume {
    position: absolute;
    top: 20px;
    left: 20px;
}

.volume input {
    width: 100px;
}

@keyframes waveAnimation {
    0% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}

@keyframes colorChange {
    0% { color: #34495e; }
    33% { color: #3498db; }
    66% { color: #e74c3c; }
    100% { color: #34495e; }
}

.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    width: 100%;
}

.page-bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    background: #000;
}

.page-bg-dim {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

.hero-profile {
    position: relative;
    z-index: 1;
    width: min(760px, 92vw);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding: 60px 20px 80px;
    overflow: hidden;
}

.hero-profile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: none;
}

.rain-layer,
.rain-layer::before,
.rain-layer::after {
    position: absolute;
    inset: -100px 0 0;
    content: "";
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0));
    background-size: 1px 80px;
    background-position: 5% 0, 19% 40px, 34% 10px, 47% 55px, 66% 20px, 82% 70px, 94% 15px;
    opacity: 0.22;
    animation: rainFall 1.2s linear infinite;
}

.rain-layer::before {
    opacity: 0.16;
    animation-duration: 1.8s;
    transform: translateX(80px);
}

.rain-layer::after {
    opacity: 0.12;
    animation-duration: 2.2s;
    transform: translateX(-90px);
}

.section-label,
.card-label {
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.hero-quote {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(22px, 4vw, 48px);
    font-weight: 400;
    font-style: italic;
    text-shadow: 0 0 18px rgba(255,255,255,0.18);
}

.info-grid {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.glass-card,
.now-playing {
    background: rgba(18, 22, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.glass-card {
    min-height: 112px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.discord-card {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    overflow: hidden;
    max-width: 380px;
    width: 100%;
    margin: 0 auto !important;
}

.discord-banner {
    height: 76px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
    width: 100%;
    transition: background-image 0.5s ease, background-color 0.5s ease;
}

.discord-card-body {
    padding: 16px 20px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.discord-avatar-wrap {
    position: relative;
    width: 82px;
    height: 82px;
    margin-top: -52px;
    background-color: transparent !important;
    border-radius: 50%;
    z-index: 10;
    transition: border-color 0.3s, box-shadow 0.3s;
    border: 3px solid transparent;
}

.discord-card-body .badge-row {
    position: absolute;
    top: 14px;
    right: 20px;
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
}

.discord-card .card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.discord-username {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 6px;
    font-weight: normal;
}

.pronouns-tag {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    align-self: flex-start;
    font-weight: 500;
}

.discord-bio {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    white-space: pre-line;
    word-break: break-word;
}

.discord-connections {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.connection-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.connection-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

.connection-pill i {
    font-size: 12px;
}

.discord-activities {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
}

.activity-item.spotify {
    background: rgba(30, 215, 96, 0.05);
    border-color: rgba(30, 215, 96, 0.12);
}

.activity-item.spotify:hover {
    background: rgba(30, 215, 96, 0.08);
}

.activity-image-wrap {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.activity-image {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
}

.activity-image.circle {
    border-radius: 50%;
}

.activity-info {
    flex-grow: 1;
    min-width: 0;
}

.activity-name {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-details {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.activity-state {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.activity-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.discord-avatar-wrap.has-decoration {
    border-color: transparent !important;
    box-shadow: none !important;
}

.card-avatar,
.album-cover {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
}

.discord-avatar-wrap .card-avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.discord-avatar-frame {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: 2;
    pointer-events: none;
    display: none;
}

.status-dot.avatar-status {
    position: absolute;
    right: 2px;
    bottom: 4px;
    z-index: 3;
    width: 16px;
    height: 16px;
    border: none !important;
    background-color: transparent !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.discord-avatar-wrap.status-offline .card-avatar {
    filter: grayscale(0.55);
}

.card-content strong {
    color: rgba(255,255,255,0.88);
    font-size: 18px;
}

.card-content p {
    margin: 2px 0 8px;
    color: rgba(255,255,255,0.5);
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #f23f43;
    box-shadow: 0 0 10px rgba(242,63,67,0.8);
}

.badge-row {
    display: flex;
    gap: 7px;
    opacity: 0.95;
    margin-top: 4px;
}

.profile-badge {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.profile-badge:hover {
    transform: scale(1.2);
}

.now-playing {
    width: min(540px, 100%);
    padding: 16px 20px 18px;
}

.player-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.music-disc-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 50%;
    background: #090b0c;
    background-image: radial-gradient(circle, transparent 35%, rgba(255, 255, 255, 0.05) 36%, transparent 40%, rgba(255, 255, 255, 0.05) 42%, transparent 45%, rgba(0, 0, 0, 0.5) 46%, transparent 50%);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.5),
        inset 0 0 0 4px #151819,
        inset 0 0 10px rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotateDisc 15s linear infinite;
    animation-play-state: paused;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.music-disc-wrap.playing {
    animation-play-state: running;
}

.music-disc-wrap .album-cover.small {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #000;
}

.music-disc-wrap .disc-hole {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #121616;
    border: 2.5px solid #000;
    z-index: 5;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes rotateDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.player-info {
    flex: 1;
    color: rgba(255,255,255,0.82);
}

.progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    color: rgba(255,255,255,0.48);
    font-size: 12px;
}

.progress-row input {
    flex: 1;
}

@keyframes rainFall {
    to { transform: translateY(120px); }
}

@media (max-width: 700px) {
    .hero-profile {
        padding: 28px 18px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .name-bio {
        margin-left: 0;
        margin-top: 80px;
        text-align: center;
    }
    .avatar {
        left: 50%;
        transform: translateX(-50%);
    }
    .frame {
        left: 50%;
        transform: translateX(-50%);
        top: -5px;
    }
}

@media (max-width: 500px) {
    .now-playing {
        padding: 12px 14px 14px;
    }
    .player-row {
        gap: 12px;
    }
    .music-disc-wrap {
        width: 58px;
        height: 58px;
        flex: 0 0 58px;
    }
    .music-disc-wrap .album-cover.small {
        width: 34px;
        height: 34px;
    }
    #trackInfo {
        font-size: 13.5px;
    }
    .progress-row {
        gap: 6px;
        font-size: 11px;
    }
    .progress-row input[type="range"] {
        min-width: 50px;
    }
    .buttons button {
        font-size: 18px;
    }
}

.cursor {
    display: inline-block;
    margin-left: 4px;
    animation: cursorBlink 0.8s infinite;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 200;
}

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

.emoji-trail-particle {
    position: absolute;
    pointer-events: none;
    z-index: 10000;
    font-size: 20px;
    user-select: none;
    animation: fadeAndRise 1s forwards ease-out;
    transform-origin: center;
    will-change: transform, opacity;
}

@keyframes fadeAndRise {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), calc(-50% - 70px)) scale(0.4) rotate(var(--rot));
    }
}

.landing-page {
    position: relative;
}

.footer {
    width: 100%;
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.72) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 60px;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}