:root {
    --pink: #ffdae9;
    --dark-pink: #ff85b3;
    --soft-white: #fffafa;
    --accent: #e0c3fc;
}

main {
    max-width: 900px; /* Limits how wide the content can grow */
    margin: 0 auto;   /* Centers the container */
    padding: 20px 40px; /* Space on the sides (40px) */
    display: flex;
    flex-direction: column;
    gap: 30px; /* Adds a cute space between cards */
}

.glass-card {
    width: 100%; /* Takes up the full width of the 'main' container */
    box-sizing: border-box; /* Ensures padding doesn't break the width */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 2px solid white;
    padding: 40px; /* More padding inside the card for that luxury feel */
    box-shadow: 0 8px 32px rgba(255, 182, 193, 0.2);
    transition: transform 0.3s ease;
}

/* Mobile adjustment so it doesn't get TOO narrow on small phones */
@media (max-width: 600px) {
    main {
        padding: 20px 15px; /* Less side padding on tiny screens */
    }
    
    .glass-card {
        padding: 25px; /* Slightly smaller padding inside cards for mobile */
    }
}
/* Responsive Adjustments */

/* For Tablets and smaller desktops */
@media (max-width: 1024px) {
    .glass-card {
        margin: 20px;
        max-width: 90%;
    }
}

/* For Mobile Phones */
@media (max-width: 600px) {
    h1 {
        font-size: 2.8rem; /* Shrink title so it doesn't wrap weirdly */
    }

    .subtitle {
        font-size: 0.9rem;
        padding: 0 20px;
    }

    header {
        height: 50vh; /* Shorter header on mobile */
    }

    .pfp-outline {
        width: 120px;
        height: 120px;
    }

    .side-menu {
        width: 240px; /* Slightly narrower sidebar */
        top: 80px;
    }

    .menu-btn {
        top: 20px;
        right: 20px;
        padding: 8px; /* Smaller button */
    }

    .bar {
        width: 20px; /* Thinner bars */
        margin: 4px 0;
    }

    .glass-card h2 {
        font-size: 1.4rem;
    }
}

/* Fix for Sparkles on Mobile */
/* We disable sparkles on touch devices to prevent lag and "sticky" dots */
@media (hover: none) {
    .sparkle {
        display: none !important;
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
    background-attachment: fixed;
    color: #5d5d5d;
    overflow-x: hidden;
}

header {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('https://www.transparenttextures.com/patterns/cubes.png'), var(--pink);
    border-bottom: 5px dashed white;
}

/* The floating menu button - keeping it cute */
.menu-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1001;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    padding: 12px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid white;
    transition: 0.3s;
}

/* Sidebar styling: Minimal and fits your vibe */
.side-menu {
    position: fixed;
    top: 100px; /* Floating, not touching the top */
    right: -320px; /* Hidden off-screen */
    width: 280px;
    height: auto;
    max-height: 70vh;
    background: rgba(255, 218, 233, 0.4); /* Very light pink tint */
    backdrop-filter: blur(20px); /* The "Subtle" blur effect */
    border: 2px solid white;
    border-radius: 30px 0 0 30px; /* Rounded on the inner side */
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1); /* Smooth "bounce" feel */
    box-shadow: -10px 0 30px rgba(255, 182, 193, 0.2);
}

.side-menu.active {
    right: 0;
}

/* Background Blur Overlay */
.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(0px);
    pointer-events: none;
    transition: backdrop-filter 0.5s ease;
    z-index: 999;
}

.blur-overlay.active {
    backdrop-filter: blur(8px);
    pointer-events: all;
}

.nav-links {
    list-style: none;
    padding: 40px 20px;
}

.nav-links li {
    margin: 20px 0;
}

.nav-links a {
    text-decoration: none;
    color: #7d7d7d;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    transition: 0.3s;
    padding: 10px;
    border-radius: 10px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--dark-pink);
    transform: translateX(-5px);
}

/* Hamburger animation to 'X' */
.menu-btn.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.active .bar:nth-child(2) { opacity: 0; }
.menu-btn.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.profile-card {
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.pfp-outline {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border: 4px solid white;
    border-radius: 50%;
    padding: 10px;
    background: var(--accent);
}

.pfp {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
}

h1 {
    font-family: 'Sacramento', cursive;
    font-size: 4rem;
    color: var(--dark-pink);
    margin: 10px 0 0 0;
    text-shadow: 2px 2px white;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 2px solid white;
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 8px 32px rgba(255, 182, 193, 0.2);
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 860px;
    margin: 0 auto 50px auto;
}

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

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: var(--dark-pink);
}