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

:root {
    --bg-dark: #2a1f1a;
    --bg-card: rgba(42, 31, 26, 0.92);
    --warm-orange: #e8a87c;
    --warm-cream: #f5e6d3;
    --warm-brown: #85603f;
    --warm-pink: #c9a690;
    --cozy-beige: #d4b896;
    --text-primary: #f5e6d3;
    --text-secondary: rgba(245, 230, 211, 0.8);
    --text-muted: rgba(245, 230, 211, 0.5);
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Video Background */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 31, 26, 0.4);
    z-index: 1;
}

/* Decorations */
.decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Cat Paw Print - CSS */
.cat-paw {
    position: absolute;
    width: 35px;
    height: 28px;
    background-color: var(--warm-orange);
    border-radius: 50% 50% 40% 40%;
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
}

.cat-paw::before,
.cat-paw::after,
.cat-paw .toe1,
.cat-paw .toe2 {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: var(--warm-orange);
    border-radius: 50%;
}

.cat-paw::before {
    top: -10px;
    left: 4px;
}

.cat-paw::after {
    top: -10px;
    right: 4px;
}

.cat-paw .toe1 {
    top: -3px;
    left: -7px;
}

.cat-paw .toe2 {
    top: -3px;
    right: -7px;
}

.paw-1 {
    top: 30%;
    right: 10%;
    animation-delay: -1s;
}

.paw-2 {
    bottom: 35%;
    left: 8%;
    transform: scale(0.8);
    animation-delay: -4s;
}

.paw-3 {
    top: 60%;
    right: 5%;
    transform: scale(0.7);
    animation-delay: -2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

/* Entrance Screen */
.entrance-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a1f1a 0%, #3d2e24 50%, #2a1f1a 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

.entrance-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entrance-content {
    text-align: center;
}

/* CSS Cat - Full Body */
.css-cat {
    --fur: #222;
    --fur-dark: #111;
    --skin: #ffb6c1;
    font-size: 0.25vmin;
    width: 80em;
    aspect-ratio: 1;
    position: relative;
    margin: 0 auto 1rem auto;
    animation: catBounce 2s ease-in-out infinite;
}

.css-cat *,
.css-cat *::before,
.css-cat *::after {
    position: absolute;
    box-sizing: border-box;
}

.css-cat .shadow {
    width: 80%;
    height: 5%;
    background: rgba(0,0,0,0.15);
    border-radius: 50% / 0 0 100% 100%;
    top: 99%;
    left: 50%;
    translate: -50%;
}

.css-cat .tail {
    width: 50%;
    height: 50%;
    border-radius: 50%;
    border: 7em solid transparent;
    border-top-color: var(--fur-dark);
    border-left-color: var(--fur-dark);
    clip-path: polygon(100% 0, 100% 100%, 0 30%, 0 0);
    top: 75%;
    left: 52%;
}

.css-cat .tail::before {
    content: "";
    width: 7em;
    aspect-ratio: 1;
    background: var(--fur-dark);
    border-radius: 50%;
    left: 81%;
    top: -9%;
}

.css-cat .body {
    left: 50%;
    translate: -50%;
    bottom: 0;
    width: 35%;
    height: 40%;
    background:
        radial-gradient(100% 80% at 50% 0, var(--fur-dark) 50%, transparent 0),
        var(--fur);
    border-radius: 100% / 200% 200% 20% 20%;
}

.css-cat .body .leg {
    width: 165%;
    height: 38%;
    background: var(--fur);
    bottom: 0;
    left: 50%;
    translate: -50%;
    border-radius: 8em 8em 100% 100% / 10em 10em 16em 16em;
    scale: 1 -1;
}

.css-cat .body .paw {
    width: 35%;
    height: 49%;
    border: 0.75em solid var(--skin);
    border-top: 0;
    border-radius: 0 0 5em 5em;
    border-bottom: 1em solid var(--skin);
    top: 48%;
    rotate: -10deg;
    left: 10%;
    clip-path: polygon(0 20%, 100% 30%, 100% 100%, 0 100%);
}

.css-cat .body .paw + .paw {
    right: 7%;
    height: 50%;
    left: auto;
    rotate: 13deg;
    scale: -1 1;
    clip-path: polygon(0 25%, 100% 15%, 100% 100%, 0 100%);
}

.css-cat .ear {
    width: 40%;
    aspect-ratio: 1;
    border: 4em solid var(--fur);
    border-radius: 5% 90% 10% 80%;
    background: var(--skin);
}

.css-cat .ear + .ear {
    scale: -1 1;
    right: 0;
}

.css-cat .head {
    width: 80%;
    aspect-ratio: 1.1;
    background:
        linear-gradient(rgba(0,0,0,0.15), transparent 50%),
        var(--fur);
    left: 50%;
    translate: -50%;
    border-radius: 100% / 125% 125% 80% 75%;
}

.css-cat .head .whisker {
    width: 30%;
    height: 30%;
    border-radius: 50%;
    border: 2em solid transparent;
    border-top-color: var(--fur-dark);
    border-left-color: var(--fur-dark);
    clip-path: polygon(100% 0, 100% 100%, 0 30%, 0 0);
}

.css-cat .head .whisker:nth-child(1) {
    top: 70%;
    translate: -65%;
}

.css-cat .head .whisker:nth-child(2) {
    top: 80%;
    translate: -40%;
    rotate: -20deg;
}

.css-cat .head .whisker:nth-child(3) {
    right: 0%;
    top: 70%;
    translate: 65%;
    rotate: 10deg;
}

.css-cat .head .whisker:nth-child(4) {
    right: 0;
    top: 80%;
    translate: 40%;
    rotate: 24deg;
}

.css-cat .head .nose {
    width: 10%;
    height: 7%;
    background: var(--skin);
    border-radius: 50%;
    left: 50%;
    translate: -50% -50%;
    top: 78%;
}

.css-cat .head .eye {
    --pos: 25%;
    --x1: 50%;
    --x2: 42%;
    width: 35%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(50% 50% at var(--x1) 47%, #fff 25%, transparent 0),
        radial-gradient(50% 50% at var(--x2) 65%, #fff 12%, transparent 0),
        radial-gradient(circle at 60% 55%, #2a1f1a 35%, transparent 0),
        white;
    left: var(--pos);
    translate: -50% -50%;
    top: 63%;
}

.css-cat .head .eye + .eye {
    --x1: 70%;
    --x2: 78%;
    left: calc(100% - var(--pos));
    scale: -1 1;
}

@keyframes catBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.entrance-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--warm-cream);
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(232, 168, 124, 0.3);
}

.entrance-prompt {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    animation: promptPulse 2s ease-in-out infinite;
}

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


/* Cat Cursor Trail */
#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Cursor Trail Particles */
.cat-particle {
    position: absolute;
    pointer-events: none;
    animation: catFall 1.5s ease-out forwards;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Paw particle - SVG */
.particle-paw {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 60'%3E%3Cellipse cx='25' cy='42' rx='12' ry='14' fill='%23e8a87c'/%3E%3Cellipse cx='10' cy='18' rx='7' ry='9' fill='%23e8a87c'/%3E%3Cellipse cx='25' cy='10' rx='7' ry='9' fill='%23e8a87c'/%3E%3Cellipse cx='40' cy='18' rx='7' ry='9' fill='%23e8a87c'/%3E%3C/svg%3E");
}

/* Heart particle - SVG */
.particle-heart {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 88 L15 50 Q0 30 25 20 Q50 15 50 35 Q50 15 75 20 Q100 30 85 50 Z' fill='%23c9a690'/%3E%3C/svg%3E");
}

/* Star particle - SVG */
.particle-star {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,5 61,40 98,40 68,62 79,95 50,75 21,95 32,62 2,40 39,40' fill='%23d4b896'/%3E%3C/svg%3E");
}

/* Dot particle */
.particle-dot {
    background: radial-gradient(circle, var(--warm-cream) 0%, var(--warm-orange) 100%);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--warm-orange);
}

@keyframes catFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(100px) rotate(45deg) scale(0.5);
    }
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.main-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    width: 100%;
    max-width: 400px;
}

/* Profile Card */
.profile-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(232, 168, 124, 0.2);
    box-shadow:
        0 0 40px rgba(232, 168, 124, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Avatar Section */
.avatar-section {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.avatar-ring {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--warm-orange), var(--warm-pink), var(--cozy-beige));
    box-shadow: 0 0 25px rgba(232, 168, 124, 0.3);
}

.avatar-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-dark);
}

.avatar-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 125px;
    height: 125px;
    pointer-events: none;
}

.avatar-decoration img {
    width: 100%;
    height: 100%;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #747f8d;
    border: 4px solid var(--bg-card);
    z-index: 10;
}

.status-indicator.online { background: #3ba55c; }
.status-indicator.idle { background: #faa61a; }
.status-indicator.dnd { background: #ed4245; }
.status-indicator.offline { background: #747f8d; }

/* Username Section */
.username-section {
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.username {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--warm-cream);
}

/* Mini Cat Face next to username - matches entrance cat */
.css-cat-mini {
    --fur: #e8a87c;
    --fur-dark: #c9a690;
    --skin: #f5e6d3;
    font-size: 0.04vmin;
    width: 80em;
    aspect-ratio: 1.1;
    position: relative;
    animation: catWiggle 3s ease-in-out infinite;
    flex-shrink: 0;
}

.css-cat-mini *,
.css-cat-mini *::before,
.css-cat-mini *::after {
    position: absolute;
    box-sizing: border-box;
}

.css-cat-mini .ear {
    width: 40%;
    aspect-ratio: 1;
    border: 4em solid var(--fur);
    border-radius: 5% 90% 10% 80%;
    background: var(--skin);
}

.css-cat-mini .ear + .ear {
    scale: -1 1;
    right: 0;
}

.css-cat-mini .head {
    width: 80%;
    aspect-ratio: 1.1;
    background:
        linear-gradient(rgba(0,0,0,0.15), transparent 50%),
        var(--fur);
    left: 50%;
    translate: -50%;
    border-radius: 100% / 125% 125% 80% 75%;
}

.css-cat-mini .head .whisker {
    width: 30%;
    height: 30%;
    border-radius: 50%;
    border: 2em solid transparent;
    border-top-color: var(--fur-dark);
    border-left-color: var(--fur-dark);
    clip-path: polygon(100% 0, 100% 100%, 0 30%, 0 0);
}

.css-cat-mini .head .whisker:nth-child(1) {
    top: 70%;
    translate: -65%;
}

.css-cat-mini .head .whisker:nth-child(2) {
    top: 80%;
    translate: -40%;
    rotate: -20deg;
}

.css-cat-mini .head .whisker:nth-child(3) {
    right: 0%;
    top: 70%;
    translate: 65%;
    rotate: 10deg;
}

.css-cat-mini .head .whisker:nth-child(4) {
    right: 0;
    top: 80%;
    translate: 40%;
    rotate: 24deg;
}

.css-cat-mini .head .nose {
    width: 10%;
    height: 7%;
    background: var(--skin);
    border-radius: 50%;
    left: 50%;
    translate: -50% -50%;
    top: 78%;
}

.css-cat-mini .head .eye {
    --pos: 25%;
    --x1: 50%;
    --x2: 42%;
    width: 35%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(50% 50% at var(--x1) 47%, #fff 25%, transparent 0),
        radial-gradient(50% 50% at var(--x2) 65%, #fff 12%, transparent 0),
        radial-gradient(circle at 60% 55%, #2a1f1a 35%, transparent 0),
        white;
    left: var(--pos);
    translate: -50% -50%;
    top: 63%;
}

.css-cat-mini .head .eye + .eye {
    --x1: 70%;
    --x2: 78%;
    left: calc(100% - var(--pos));
    scale: -1 1;
}

@keyframes catWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Social Links */
.socials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    background: rgba(232, 168, 124, 0.08);
    border: 1px solid rgba(232, 168, 124, 0.15);
    border-radius: 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.social-link:hover {
    background: rgba(232, 168, 124, 0.15);
    border-color: var(--warm-orange);
    transform: scale(1.03);
    box-shadow: 0 5px 20px rgba(232, 168, 124, 0.2);
}

.social-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Different colors for each social */
.social-link:nth-child(1) svg { fill: #ff6b6b; } /* YouTube - warm red */
.social-link:nth-child(2) svg { fill: #9b84c4; } /* Discord - soft purple */
.social-link:nth-child(3) svg { fill: #e8a87c; } /* Monkeytype - warm orange */
.social-link:nth-child(4) svg { fill: #c9a690; } /* TikTok - warm pink */
.social-link:nth-child(5) svg { fill: #7ec8a3; } /* Spotify - soft green */
.social-link:nth-child(6) svg { fill: #d4b896; } /* Roblox - cozy beige */

.social-link span {
    flex: 1;
}

/* Discord Presence Card */
.discord-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(232, 168, 124, 0.1);
    border-radius: 14px;
    padding: 0.875rem 1rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.discord-card:hover {
    transform: scale(1.02);
}

.discord-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(232, 168, 124, 0.3);
}

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

.discord-username {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discord-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.discord-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #747f8d;
    flex-shrink: 0;
}

.discord-status-dot.online { background: #3ba55c; }
.discord-status-dot.idle { background: #faa61a; }
.discord-status-dot.dnd { background: #ed4245; }
.discord-status-dot.offline { background: #747f8d; }

.discord-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Media Player */
.media-player {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.media-player.visible {
    opacity: 1;
}

.media-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--warm-orange);
    color: var(--warm-orange);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(232, 168, 124, 0.2);
}

.media-btn:hover {
    background: rgba(232, 168, 124, 0.2);
    transform: scale(1.1);
}

.media-btn.playing {
    animation: mediaPulse 2s ease-in-out infinite;
}

@keyframes mediaPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(232, 168, 124, 0.2); }
    50% { box-shadow: 0 4px 30px rgba(232, 168, 124, 0.4); }
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    display: flex;
    justify-content: center;
    z-index: 4;
}

.footer a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--warm-orange);
    transform: scale(1.05);
}

.footer img {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    opacity: 0.5;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .main-content {
        padding: 1.5rem 1rem;
    }

    .profile-card {
        padding: 1.5rem 1.25rem;
    }

    .entrance-title {
        font-size: 2.2rem;
    }

    .entrance-cat {
        font-size: 4rem;
    }

    .avatar-ring {
        width: 85px;
        height: 85px;
    }

    .avatar-decoration {
        width: 110px;
        height: 110px;
    }

    .username {
        font-size: 1.5rem;
    }

    .social-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .yarn, .paw {
        display: none;
    }

    .media-player {
        bottom: 16px;
        right: 16px;
    }

    .media-btn {
        width: 44px;
        height: 44px;
    }
}

/* Selection */
::selection {
    background: var(--warm-orange);
    color: var(--bg-dark);
}
