:root {
    --bg-dark: #16112c; /* Deep twilight indigo */
    --text-main: #fff0f5; /* Lavender blush white */
    --text-mut: #cfbad6; /* Muted pastel purple */
    
    --glass-bg: rgba(244, 114, 182, 0.08); /* Pink glass */
    --glass-border: rgba(244, 114, 182, 0.25);
    
    /* Neon Shojo Accents */
    --color-pink: #ff7ebb;
    --color-cyan: #38e8ff;
    --color-da: #00e59b;
    
    /* Warning UI Color */
    --color-warn: #fb7185; 

    --font-head: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
    /* Cute Magic Wand Cursor */
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' style='font-size: 24px;'><text y='20'>🪄</text></svg>"), auto;
}

/* Sparkle Cursor for Interactive Elements */
a, button, .glass-btn, .glass-card {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' style='font-size: 24px;'><text y='20'>✨</text></svg>"), pointer !important;
}

/* --- The Cute Starry Background Layer --- */
.starfield {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.3;
}

/* --- Scattered Parallax BG Elements --- */
#bg-parallax-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-element {
    position: absolute;
    will-change: transform;
    opacity: 0.5;
    /* Soft glowing shape layout */
    border-radius: 50%;
    filter: blur(2px) drop-shadow(0 0 10px currentColor);
}

.bg-el-pink { background: var(--color-pink); color: var(--color-pink); }
.bg-el-cyan { background: var(--color-cyan); color: var(--color-cyan); }
.bg-el-white { background: #fff; color: #fff; filter: drop-shadow(0 0 5px #fff); }

/* --- Structured Content Layer --- */
.content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

/* Cute Headers */
.shojo-header {
    font-family: var(--font-head);
    font-size: 2.2rem;
    color: var(--color-pink);
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(255, 126, 187, 0.4);
    letter-spacing: 0.02em;
}

/* Typography Constraints */
.title-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.main-title {
    font-family: var(--font-head);
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ff7ebb, #38e8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(255, 126, 187, 0.3);
}

.sparkle {
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
}

.subtitle {
    font-family: var(--font-head);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: var(--text-mut);
    margin-bottom: 1.5rem;
}

.bio {
    font-size: 1.25rem;
    color: #ffdceb;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Cute Tags */
.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}
.modern-tag {
    background: rgba(255, 126, 187, 0.1);
    border: 1px solid rgba(255, 126, 187, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffdceb;
    box-shadow: 0 4px 10px rgba(255, 126, 187, 0.1);
}


/* --- Flat Glass Buttons & Hover Mechanics --- */
.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.glass-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 100px;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.glass-btn:hover {
    transform: translateY(-6px) scale(1.02);
    background: rgba(255, 126, 187, 0.15);
}

/* Custom Vector Icons */
.svg-icon {
    width: 26px;
    height: 26px;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.base-path {
    stroke: rgba(255,255,255,0.25);
}

/* Custom Trace Animation */
.anim-path {
    stroke: var(--hover-color, #ff7ebb);
    stroke-dasharray: 400;
    stroke-dashoffset: 400; 
    transition: stroke-dashoffset 0.6s cubic-bezier(0.2, 0, 0, 1);
}

.glass-btn:hover .anim-path {
    stroke-dashoffset: 0;
}

.da-link { --hover-color: var(--color-da); }
.gh-link { --hover-color: #ffffff; }
.kofi-link { --hover-color: var(--color-cyan); }

.da-link:hover { border-color: rgba(0, 229, 155, 0.5); box-shadow: 0 10px 30px rgba(0, 229, 155, 0.2), inset 0 0 15px rgba(0, 229, 155, 0.1); }
.gh-link:hover { border-color: rgba(255,255,255,0.5); box-shadow: 0 10px 30px rgba(255,255,255,0.1), inset 0 0 15px rgba(255,255,255,0.1); }
.kofi-link:hover { border-color: rgba(56, 232, 255, 0.5); box-shadow: 0 10px 30px rgba(56, 232, 255, 0.2), inset 0 0 15px rgba(56, 232, 255, 0.1); }


/* --- Fluid Masonry Grid Layout --- */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-decoration: none;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease;
}

.glass-card h3 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--color-pink);
    position: relative;
    z-index: 2;
}

.glass-card p {
    color: var(--text-mut);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
}

.hover-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 250px; height: 250px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.glow-p1 { background: radial-gradient(circle, rgba(255, 126, 187, 0.2), transparent 70%); }
.glow-p2 { background: radial-gradient(circle, rgba(56, 232, 255, 0.2), transparent 70%); }
.glow-p3 { background: radial-gradient(circle, rgba(236, 72, 184, 0.2), transparent 70%); }

.glass-card:hover { transform: translateY(-8px) scale(1.02); border-color: rgba(255, 126, 187, 0.5); box-shadow: 0 15px 40px rgba(255, 126, 187, 0.15); }
.glass-card:hover .hover-glow { opacity: 1; }


/* --- NSFW Kawaii Modal Overlay --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(22, 17, 44, 0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.4s ease, visibility 0.4s;
    visibility: visible;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.hidden .modal-content {
    transform: translateY(40px);
}

.modal-title {
    color: var(--color-warn);
    font-family: var(--font-head);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(251, 113, 133, 0.5);
}

.modal-text {
    font-size: 1.2rem;
    color: #ffdceb;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.modal-btn {
    border-radius: 100px;
    padding: 1rem 2.5rem;
}

.nsfw-btn {
    background: rgba(251, 113, 133, 0.15); 
    border-color: rgba(251, 113, 133, 0.5);
    color: #fecdd3;
}

.nsfw-btn:hover {
    background: rgba(251, 113, 133, 0.3);
    border-color: rgba(251, 113, 133, 0.9);
    box-shadow: 0 10px 30px rgba(251, 113, 133, 0.3);
    transform: translateY(-4px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.2, 0, 0, 1), transform 0.8s cubic-bezier(0.2, 0, 0, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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