:root {
    --color-bg-start: #f0dfff;
    --color-bg-end: #a1c4fd;
    --color-grid: rgba(191, 218, 255, 0.2);
    --color-window-bg: rgba(255, 255, 255, 0.65);
    --color-window-border: rgba(255, 255, 255, 0.8);
    --color-shadow: rgba(124, 127, 255, 0.2);
    --color-text: #333;
    --color-header: #5b5f97;
    --color-accent: #ff6b6b;
    --color-glow: #ffc6ff;

    --font-main: 'Lexend', sans-serif;
    --font-header: 'Comfortaa', cursiv
    --font-pixel: 'VT323', monospace;

    --border-radius: 12px;
    --window-border: 3px solid var(--color-window-border);
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg-start);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #e6e0ff;
    background-image: 
        linear-gradient(rgba(255,255,255,0.6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.6) 1px, transparent 1px),
        radial-gradient(circle at 15% 25%, rgba(255,255,255,0.9) 1px, transparent 2px),
        radial-gradient(circle at 85% 15%, rgba(255,255,255,0.7) 1.5px, transparent 2px),
        radial-gradient(circle at 45% 75%, rgba(255,255,255,0.8) 1px, transparent 2px),
        radial-gradient(circle at 75% 85%, rgba(200,200,200,0.8) 1px, transparent 2px),
        radial-gradient(circle at 25% 55%, rgba(255,255,255,0.9) 1.5px, transparent 2px),
        radial-gradient(circle at 95% 45%, rgba(220,220,220,0.7) 1px, transparent 2px),
        radial-gradient(circle at 55% 15%, rgba(255,255,255,0.8) 1px, transparent 2px),
        radial-gradient(circle at 5% 75%, rgba(255,255,255,0.6) 1.5px, transparent 2px);
    background-size: 
        25px 25px,
        25px 25px,
        120px 120px,
        180px 180px,
        150px 150px,
        200px 200px,
        160px 160px,
        140px 140px,
        170px 170px,
        190px 190px;
    background-position:
        0 0,
        0 0,
        0 0,
        40px 40px,
        80px 20px,
        20px 80px,
        60px 100px,
        100px 60px,
        120px 10px,
        10px 120px;
    z-index: -2;
    animation: stars-twinkle 6s ease-in-out infinite;
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, 
        rgba(240, 223, 255, 0.3), 
        rgba(161, 196, 253, 0.5));
    opacity: 0.7;
    z-index: -1;
    animation: gradient-fade 10s ease infinite alternate;
}

@keyframes gradient-fade {
    0% { opacity: 0.7; }
    100% { opacity: 0.9; }
}

@keyframes stars-twinkle {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.1);
    }
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
}
.window {
    width: 100%;
    max-width: 420px;
    background: var(--color-window-bg);
    border-radius: var(--border-radius);
    border: var(--window-border);
    box-shadow: 0 10px 30px var(--color-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transform: scale(0.95);
    animation: window-appear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes window-appear {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #e0e0e0 0%, #c0c0c0 50%, #a0a0a0 100%);
    padding: 10px 15px;
    border-bottom: 2px solid #808080;
    box-shadow: 
        inset 0 1px 0 #f0f0f0,
        inset 0 -1px 0 #909090;
}

.title-text {
    font-family: var(--font-pixel);
    font-size: 16px;
    color: #2a2a2a;
    letter-spacing: 1px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #ffffff;
}

.title-buttons .dot {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    border: 1px solid #606060;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.5),
        0 1px 2px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.title-buttons .dot:hover {
    transform: translateY(1px);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.5),
        0 0 1px rgba(0,0,0,0.3);
}

.title-buttons .dot.green { 
    background: linear-gradient(135deg, #90EE90, #32CD32);
}
.title-buttons .dot.yellow { 
    background: linear-gradient(135deg, #FFD700, #FFA500);
}
.title-buttons .dot.red { 
    background: linear-gradient(135deg, #FF6B6B, #DC143C);
}

.window-content {
    padding: 25px;
}

.profile {
    margin-bottom: 25px;
}

.avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed) ease;
}

.avatar:hover {
    transform: scale(1.05) rotate(3deg);
}

.status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background-color: #E53E3E;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(229, 62, 62, 0.6);
    transition: all 0.3s ease;
}

.status-dot.online {
    background-color: #68D391;
    box-shadow: 0 0 10px rgba(104, 211, 145, 0.6);
}

.status-dot.offline {
    background-color: #E53E3E;
    box-shadow: 0 0 10px rgba(229, 62, 62, 0.6);
}

h1 {
    font-family: var(--font-header);
    font-size: 2.2rem;
    color: var(--color-header);
    font-weight: 700;
    margin-bottom: 5px;
}

.bio {
    font-size: 1rem;
    color: #555;
    max-width: 300px;
    margin: 0 auto;
}
.links {
    display: grid;
    gap: 15px;
}

.link-tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    border: none;
    transition: all var(--transition-speed) ease;
    overflow: hidden;
}

.link-tile .icon {
    font-size: 1.5rem;
    margin-right: 12px;
    transition: transform var(--transition-speed) ease;
}

.link-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--color-shadow);
}

.link-tile:hover .icon {
    transform: scale(1.2);
}

.link-tile:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px var(--color-shadow);
}
.kick .fa-kickstarter {
    font-size: 1.8rem !important;
    vertical-align: middle;
    line-height: 1;
}
.link-tile.twitch    { background-color: #9146FF; }
.link-tile.tiktok    { background-color: #000000; }
.link-tile.youtube   { background-color: #FF0000; }
.link-tile.discord   { background-color: #5865F2; }
.link-tile.twitter   { background-color: #1DA1F2; }
.link-tile.instagram { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
}
.link-tile.kick      { background-color: #53FC18; color: #fff; }
.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--color-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    pointer-events: none;
}

.link-tile:hover .glow {
    opacity: 0.3;
}
.page-footer {
    margin-top: 20px;
    font-family: var(--font-pixel);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-window {
    width: 90%;
    max-width: 380px;
    background: var(--color-window-bg);
    border-radius: var(--border-radius);
    border: var(--window-border);
    box-shadow: 0 20px 40px rgba(124, 127, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-overlay.active .popup-window {
    transform: scale(1) translateY(0);
}

.popup-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #e0e0e0 0%, #c0c0c0 50%, #a0a0a0 100%);
    padding: 10px 15px;
    border-bottom: 2px solid #808080;
    box-shadow: 
        inset 0 1px 0 #f0f0f0,
        inset 0 -1px 0 #909090;
}

.popup-title-text {
    font-family: var(--font-pixel);
    font-size: 14px;
    color: #2a2a2a;
    letter-spacing: 1px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #ffffff;
}

.popup-title-buttons .popup-dot {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid #606060;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.5),
        0 1px 2px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #FF6B6B, #DC143C);
}

.popup-title-buttons .popup-dot:hover {
    transform: translateY(1px);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.5),
        0 0 1px rgba(0,0,0,0.3);
}

.popup-content {
    padding: 25px;
    text-align: center;
}

.popup-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    font-family: var(--font-main);
}

.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-family: var(--font-header);
    font-weight: 600;
    color: #fff;
    transition: all var(--transition-speed) ease;
    overflow: hidden;
    position: relative;
}

.popup-btn i {
    font-size: 1.8rem;
    margin-right: 15px;
    transition: transform var(--transition-speed) ease;
}

.popup-btn span {
    font-size: 1.1rem;
    flex-grow: 1;
    text-align: left;
}

.popup-btn small {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 400;
}

.popup-btn.primary {
    background: linear-gradient(135deg, #FF0000, #CC0000);
}

.popup-btn.secondary {
    background: linear-gradient(135deg, #CC0000, #990000);
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.popup-btn:hover i {
    transform: scale(1.1) rotate(-5deg);
}

.popup-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.2);
}

@media (max-width: 480px) {
    .popup-window {
        margin: 20px;
    }
    
    .popup-content {
        padding: 20px;
    }
    
    .popup-description {
        font-size: 0.9rem;
    }
    
    .popup-btn {
        padding: 12px 15px;
    }
    
    .popup-btn i {
        font-size: 1.5rem;
        margin-right: 12px;
    }
    
    .popup-btn span {
        font-size: 1rem;
    }
    
    .popup-btn small {
        font-size: 0.8rem;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .window {
        margin-top: 10px;
    }

    .window-content {
        padding: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .bio {
        font-size: 0.9rem;
    }

    .link-tile {
        padding: 12px;
        font-size: 1rem;
    }

    .link-tile .icon {
        font-size: 1.3rem;
        margin-right: 10px;
    }
}
.easter-mouse {
    position: fixed;
    width: 64px;
    height: 64px;
    z-index: 9999;
    pointer-events: none;
    animation: mouse-pop 0.4s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes mouse-pop {
    0% { transform: scale(0.2) rotate(-20deg); opacity: 0; }
    70% { transform: scale(1.1) rotate(10deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
