:root {
    --bg-color: #0f0f13;
    --text-color: #e0e0e0;
    --accent-pink: #ffdae0;
    --deep-rose: #ff7eb3;
    --soft-peach: #ff758c;
    --glow-color: rgba(255, 117, 140, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --tech-font: 'Inter', sans-serif;
    --cute-font: 'Outfit', sans-serif;
    --handwriting-font: 'Dancing Script', cursive;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    font-family: var(--cute-font);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    cursor: none;
}

/* Base Canvas for Particles */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Background Mesh Gradient Logic */
.bg-gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(255, 117, 140, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(117, 140, 255, 0.1), transparent 25%);
    z-index: -2;
    animation: gradientShift 10s ease infinite alternate;
}

@keyframes gradientShift {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Advanced Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: white;
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, width 0.2s, height 0.2s;
    transform: translate(-50%, -50%);
}

/* Utility Animations */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    filter: blur(10px);
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }

    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
}

/* Boot Screen - Glass Terminal */
.boot-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    color: var(--accent-pink);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.terminal-window {
    width: 600px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

#terminal-text {
    font-family: 'Courier New', monospace;
    white-space: pre-line;
    min-height: 100px;
}

/* Main Content */
main {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

h1.title-gradient {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #ff7eb3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 126, 179, 0.5);
    margin-bottom: 1rem;
}

.subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Glass Cards */
.cards-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 6rem 0;
    flex-wrap: wrap;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    width: 240px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
}

.glass-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(255, 126, 179, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Interaction Section */
.interaction-section {
    margin: 8rem 0;
}

.glow-btn {
    background: linear-gradient(135deg, #ff7eb3, #ff758c);
    border: none;
    padding: 1.2rem 3.5rem;
    border-radius: 100px;
    font-size: 1.4rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(255, 117, 140, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glow-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(white, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s, transform 0.5s;
}

.glow-btn:hover::after {
    opacity: 0.2;
    transform: scale(1);
}

.glow-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 117, 140, 0.7);
}

.hidden-message {
    margin-top: 2rem;
    font-size: 1.3rem;
    color: #ffdae0;
    text-shadow: 0 0 10px rgba(255, 117, 140, 0.5);
    opacity: 0;
    transition: opacity 1s ease;
}

/* Profile Panel with Glassmorphism */
.profile-section {
    margin: 6rem auto;
    max-width: 500px;
    opacity: 0;
    transform: translateY(30px);
}

.visible .profile-section {
    opacity: 1;
    transform: translateY(0);
    transition: 1s ease;
}

.glass-panel {
    background: linear-gradient(180deg, rgba(30, 30, 40, 0.7) 0%, rgba(20, 20, 30, 0.4) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff7eb3, #8e44ad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 0 20px rgba(255, 126, 179, 0.4);
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.tech-text {
    color: #d19bf7;
    text-shadow: 0 0 10px rgba(209, 155, 247, 0.4);
}

.active-buff {
    color: #ff9a9e;
}

/* Letter */
.letter-section {
    margin: 6rem 0;
}

.glass-paper {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 4rem;
    font-family: var(--handwriting-font);
    font-size: 1.6rem;
    border-radius: 4px;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: rotate(-1deg);
}

/* Animations */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    h1.title-gradient {
        font-size: 2.5rem;
    }

    .glass-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .letter-paper {
        padding: 2rem;
        font-size: 1.3rem;
    }
}