/* ===== PURPLE / LILAC / LAVENDER THEME - ACTIVITY 2 ONLY ===== */
:root {
    --lavender-light: #f3e8ff;
    --lavender-bg: #faf5ff;
    --lilac-primary: #a855f7;
    --lilac-dark: #7e22ce;
    --lavender-soft: #e9d5ff;
    --purple-deep: #581c87;
    --purple-muted: #c084fc;
    --gray-lavender: #f1eefe;
    --shadow-sm: 0 8px 20px rgba(139, 92, 246, 0.12);
    --shadow-hover: 0 20px 35px rgba(126, 34, 206, 0.2);
    --border-radius-card: 24px;
}

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

body {
    background: linear-gradient(135deg, #f5efff 0%, #e9dffa 100%);
    font-family: 'Segoe UI', 'Poppins', system-ui, -apple-system, 'Inter', sans-serif;
    min-height: 100vh;
    padding: 2rem;
    color: #2d1b3c;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* ========== HERO INTRO SECTION (separate from blocks) ========== */
.hero-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 48px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.08);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7e22ce, #c084fc, #a855f7);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 10px rgba(168, 85, 247, 0.2);
}

.hero-description {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a2c6d;
}

.hero-description p {
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 0.95rem;
    color: #7c5ca3;
    font-style: italic;
    margin-top: 0.5rem;
}

/* ========== DEFAULT LAYOUT: RECTANGULAR BOXES (GRID) ========== */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.8rem;
    transition: all 0.3s ease;
}

/* rectangular block cards */
.section-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    border-radius: var(--border-radius-card);
    padding: 1.6rem 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease-in-out;
    border: 1px solid rgba(168, 85, 247, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.section-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--lilac-primary);
    background: white;
}

/* header inside each card */
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--lavender-soft);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 2rem;
}

.card-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7e22ce, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}

.card-content {
    color: #3c2a4f;
    line-height: 1.5;
}

/* list styles for skills, hobbies, achievements */
.pretty-list {
    list-style: none;
    margin-top: 0.5rem;
}

.pretty-list li {
    padding: 0.4rem 0 0.4rem 1.6rem;
    position: relative;
}

.pretty-list li::before {
    content: "✨";
    position: absolute;
    left: 0;
    color: var(--lilac-primary);
}

.family-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.family-badge {
    background: var(--lavender-light);
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-weight: 500;
    color: var(--purple-deep);
    font-size: 0.9rem;
}

/* achievement highlight */
.achievement-stats {
    background: #f9f2ff;
    border-radius: 20px;
    padding: 0.6rem;
    margin-top: 0.8rem;
}

/* ========== SIDEBAR MODE (when a section is clicked) ========== */
.sidebar-layout {
    display: flex;
    gap: 2rem;
    animation: fadeSlide 0.4s ease;
}

.sidebar-nav {
    width: 280px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 1.5rem 0.8rem;
    box-shadow: 0 15px 35px rgba(88, 28, 135, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar-nav h3 {
    font-size: 1.4rem;
    text-align: center;
    color: var(--lilac-dark);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px dashed var(--lavender-soft);
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sidebar-btn {
    background: transparent;
    border: none;
    text-align: left;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.2s;
    color: #4a2c6d;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-btn:hover {
    background: var(--lavender-light);
    transform: translateX(6px);
    color: var(--purple-deep);
}

.sidebar-btn.active {
    background: linear-gradient(90deg, var(--lilac-primary), #b77cff);
    color: white;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.sidebar-btn.active span:first-child {
    filter: brightness(1.1);
}

.main-content-area {
    flex: 1;
    background: white;
    border-radius: 32px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(168, 85, 247, 0.25);
    animation: fadeIn 0.3s ease;
}

.main-content-area .display-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #9333ea, #d8b4fe);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.back-to-grid {
    background: var(--lavender-light);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    color: var(--purple-deep);
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.back-to-grid:hover {
    background: var(--lilac-primary);
    color: white;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* footer note */
.footer-note {
    text-align: center;
    margin-top: 2.5rem;
    color: #5b3e7c;
    font-weight: 500;
    padding: 1rem;
}

hr {
    margin: 1rem 0;
    border: none;
    border-top: 2px dotted #d9c6f0;
}

button {
    background: none;
    border: none;
}

/* responsive: small screens sidebar becomes column */
@media (max-width: 780px) {
    body {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .sidebar-layout {
        flex-direction: column;
    }
    
    .sidebar-nav {
        width: 100%;
        position: static;
    }
    
    .sidebar-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-btn {
        flex: 1;
        justify-content: center;
    }
    
    .sections-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .section-card {
        padding: 1.2rem;
    }
    
    .card-header h2 {
        font-size: 1.4rem;
    }
}

/* scrollbar styling (lavender theme) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--lavender-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--lilac-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lilac-dark);
}