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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    min-height: 100vh;
    color: #f5f5f7;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #f5f5f7;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #a1a1a6;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95em;
}

.nav-link:hover,
.nav-link.active {
    color: #f5f5f7;
}

.hero-section {
    padding: 120px 20px 60px;
    text-align: center;
    background: linear-gradient(180deg, #000 0%, #1d1d1f 100%);
}

.hero-section h1 {
    font-size: 3.5em;
    font-weight: 700;
    color: #f5f5f7;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.6), 0 0 60px rgba(118, 75, 162, 0.4);
}

.subtitle {
    font-size: 1.2em;
    color: #86868b;
    margin-bottom: 30px;
}

.progress-tracker {
    max-width: 600px;
    margin: 30px auto 0;
    background: rgba(29, 29, 31, 0.6);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #a1a1a6;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 2em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.subgoals-panel {
    display: none;
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 400px;
    max-height: 80vh;
    background: rgba(29, 29, 31, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 1000;
}

.subgoals-panel h3 {
    color: #f5f5f7;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.subgoals-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subgoal-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
}

.subgoal-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.subgoal-item h4 {
    color: #f5f5f7;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.subgoal-item p {
    color: #a1a1a6;
    font-size: 0.9em;
    line-height: 1.5;
}

.mandala-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(29, 29, 31, 0.8);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cell.main:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.cell.center {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-weight: 700;
    font-size: 1.2em;
    cursor: default;
}

.cell.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.cell .icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.cell small {
    display: block;
    margin-top: 5px;
    color: #a1a1a6;
    font-size: 0.85em;
}

@media (max-width: 768px) {
    .detail-panel {
        width: 100%;
    }
    
    .hero-section h1 {
        font-size: 2.5em;
    }
}

.timeline {
    margin-top: 60px;
}

.timeline h2 {
    text-align: center;
    font-size: 2em;
    color: #f5f5f7;
    margin-bottom: 30px;
}

.milestone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.milestone {
    background: rgba(29, 29, 31, 0.8);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.milestone h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.milestone ul {
    list-style: none;
    padding: 0;
}

.milestone li {
    color: #a1a1a6;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.5;
}

.milestone li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .subgoals-panel {
        width: 90%;
        right: 5%;
    }
    
    .mandala-grid {
        gap: 10px;
        padding: 10px;
    }
    
    .cell {
        padding: 15px;
        font-size: 0.9em;
    }
    
    .cell .icon {
        font-size: 2em;
    }
}

@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.cell.career {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.cell.academics {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.cell.routine {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.cell.projects {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.cell.health {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.cell.finance {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.cell.drawing {
    background: linear-gradient(135deg, #f5576c 0%, #764ba2 100%);
}

.cell.japanese {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
