:root {
  /* Oceanic Japanese Palette - "Serenade of the Water Bottom" */
  --bg-color: #01162b;
  --bg-gradient: radial-gradient(circle at top left, #00385a 0%, #01162b 50%),
                 radial-gradient(circle at bottom right, #00223d 0%, #01162b 50%);
  --text-primary: #d2dbeb;
  --text-secondary: #94a2bf;
  
  /* Accents */
  --accent-primary: #6a90b4; /* Arctic Mist */
  --accent-primary-glow: rgba(106, 144, 180, 0.4);
  --accent-secondary: #d2dbeb; /* Snow Veil */
  --accent-success: #10b981;
  
  /* Glassmorphism Surface Variables */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-hover: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-border-light: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --backdrop-blur: blur(12px);
  
  /* Metrics */
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow: hidden; /* App-like feel */
}

/* Typography elements */
h1, h2, h3, h4 { color: white; font-weight: 600; letter-spacing: -0.5px; }

/* Layout */
.app-container {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 24px;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 20px var(--accent-primary-glow);
}

.nav-links {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-links li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.nav-links li:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.nav-links li.active {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-primary);
  border-left: 3px solid var(--accent-primary);
}

.nav-links li i { font-size: 20px; }

.sidebar-bottom {
  margin-top: auto;
}

/* Buttons */
.glass-btn {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--glass-border-light);
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.glass-btn.primary {
  background: linear-gradient(135deg, var(--accent-primary), rgba(139, 92, 246, 0.6));
  border: none;
  box-shadow: 0 4px 15px var(--accent-primary-glow);
}

.glass-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Topbar */
.topbar {
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar h1 {
  font-size: 28px;
  font-weight: 700;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: 30px;
  width: 300px;
  gap: 8px;
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--accent-primary);
  background: var(--glass-bg-hover);
  box-shadow: 0 0 10px var(--accent-primary-glow);
}

.search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  width: 100%;
}

.search-bar i { color: var(--text-secondary); }

/* Views Container */
.views-container {
  flex: 1;
  padding: 0 40px 40px 40px;
  overflow-y: auto;
  position: relative;
}

.view {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.view.active { display: block; }

.view-header {
  margin-bottom: 24px;
  color: var(--text-secondary);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards (Pins, Journals, Projects) */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--glass-border-light), transparent);
}

.glass-card:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-light);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-content {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid var(--glass-border);
  padding-top: 12px;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border-light);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  color: var(--text-secondary);
}

/* Specific Layouts */
.corkboard-layout {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 150px);
}

.scattered-pin {
  position: absolute;
  cursor: grab;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: box-shadow 0.2s, z-index 0s;
  max-width: 260px;
}
.scattered-pin:active { cursor: grabbing; box-shadow: 0 20px 40px rgba(0,0,0,0.7); }

.thumbtack {
  position: absolute;
  top: -8px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px;
  background: radial-gradient(circle at 35% 35%, #ffffff, #94a2bf);
  border-radius: 50%;
  box-shadow: 2px 4px 6px rgba(0,0,0,0.6), inset -2px -2px 4px rgba(0,0,0,0.3);
  z-index: 10;
}

.polaroid-style {
  background: #fdfdfd; padding: 12px 12px 36px 12px;
  color: #111; border-radius: 2px;
}
.polaroid-style img { width: 100%; border-radius: 2px; display: block; object-fit: cover;}
.polaroid-caption { font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 15px; margin-top: 12px; text-align: center; }

.sticky-style {
  background: linear-gradient(135deg, #fefadd, #f5e79e);
  padding: 24px; color: #222;
  border-radius: 2px 2px 30px 2px; font-family: 'Outfit', sans-serif;
}
.sticky-style .card-title { font-weight: 700; color: #111; }
.sticky-style .card-content { color: #333; }

.file-upload-label {
  display: flex; align-items: center; gap: 8px;
  background: var(--glass-bg); padding: 12px 14px;
  border: 1px dashed var(--glass-border-light); border-radius: var(--border-radius-sm);
  color: var(--text-secondary); cursor: pointer; margin-bottom: 16px; transition: var(--transition);
}
.file-upload-label:hover { border-color: var(--accent-primary); color: var(--text-primary); }

.list-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
}

.kanban-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.project-status {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-success);
  box-shadow: 0 0 10px var(--accent-success);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.glass-modal {
  background: #110e1bd9;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 500px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-overlay.active .glass-modal { transform: scale(1); }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
}
.close-btn:hover { color: var(--text-primary); }

.type-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.type-selector label { flex: 1; }
.type-selector input { display: none; }
.type-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 10px;
  border-radius: var(--border-radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-secondary);
}

.type-selector input:checked + .type-btn {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.glass-input, .glass-textarea {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 14px;
  color: var(--text-primary);
  font-family: inherit;
  margin-bottom: 16px;
  outline: none;
  transition: var(--transition);
}

.glass-textarea {
  resize: vertical;
  min-height: 100px;
}

.glass-input:focus, .glass-textarea:focus {
  border-color: var(--accent-primary);
  background: var(--glass-bg-hover);
}

.tags-input-container {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 0 14px;
  margin-bottom: 24px;
}
.tags-input-container i { color: var(--text-secondary); }
.tags-input-container input {
  border: none;
  margin-bottom: 0;
  background: transparent;
}
.tags-input-container:focus-within {
  border-color: var(--accent-primary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* Dashboard Styles */
.dashboard-banner {
  height: 180px;
  background: url('blue_ocean_banner.png') center/cover;
  border-radius: var(--border-radius);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  margin-bottom: 24px;
  overflow: hidden;
}
.profile-icon {
  font-size: 48px; margin-right: 20px; background: var(--glass-bg);
  backdrop-filter: blur(10px); border-radius: 50%; padding: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 2;
}
.banner-glass {
  background: rgba(0,0,0,0.5); backdrop-filter: blur(12px);
  padding: 16px 24px; border-radius: var(--border-radius-sm); z-index: 2;
}
.banner-glass h2 { text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.dashboard-banner::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.dashboard-grid { display: flex; gap: 24px; }
.dashboard-col-left { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.dashboard-col-right { flex: 2.2; display: flex; flex-direction: column; gap: 24px; }

.widget { padding: 24px; }
.widget h3 { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; font-size: 18px; }

.clock-widget {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(14, 165, 233, 0.15));
  border-color: rgba(139, 92, 246, 0.3); box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.time-display { font-size: 56px; font-weight: 800; letter-spacing: -2px; text-shadow: 0 0 20px var(--accent-primary-glow); line-height: 1.1;}
.date-display { color: var(--text-secondary); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 3px; margin-top: 4px;}

.bare-input, .bare-textarea {
  background: transparent; border: none; color: var(--text-primary); font-family: inherit; font-size: 15px; width: 100%; outline: none; border-bottom: 1px dashed transparent; transition: var(--transition);
}
.bare-input:focus, .bare-textarea:focus { border-color: var(--glass-border-light); }
.bare-textarea { resize: none; text-align: center; font-style: italic; font-weight: 300; font-size: 18px; min-height: 60px; line-height: 1.5;}

/* Weekplan Widget */
.weekplan-container { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.day-col { background: rgba(255,255,255,0.02); border-radius: var(--border-radius-sm); padding: 12px; border: 1px solid var(--glass-border-light); display: flex; flex-direction: column;}
.day-col.today { border-color: var(--accent-primary); background: rgba(139, 92, 246, 0.05);}
.day-header { text-align: center; font-weight: 600; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--glass-border); font-size: 13px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px;}
.day-col.today .day-header { color: var(--accent-primary); border-bottom-color: rgba(139, 92, 246, 0.3); }

.task-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-size: 13px; }
input[type="checkbox"] { flex-shrink: 0; margin-top: 3px; cursor: pointer; border-radius: 4px; accent-color: var(--accent-primary);}
.task-item span { flex: 1; word-break: break-word; line-height: 1.4;}
.task-item.completed span { text-decoration: line-through; opacity: 0.4; }
.task-list-box { flex: 1; min-height: 50px;}

.add-task-input { width: 100%; background: transparent; border: none; border-bottom: 1px dashed var(--glass-border); color: var(--text-secondary); padding: 4px 0; font-size: 12px; outline: none; margin-top: auto;}
.add-task-input:focus { border-color: var(--accent-primary); color: var(--text-primary); }

/* Habit Tracker */
.habit-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.habit-item { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.habit-item.completed span { text-decoration: line-through; opacity: 0.4; }

/* Weather */
#weather-info { display: flex; align-items: center; gap: 16px; font-size: 15px;}
.weather-temp { font-size: 32px; font-weight: 700; color: white;}
.weather-desc { color: var(--text-secondary); display: flex; flex-direction: column; gap: 4px;}
.weather-icon { font-size: 32px; color: var(--accent-secondary); }

/* Drafts Gallery */
.drafts-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.draft-card { background: rgba(255,255,255,0.03); padding: 16px; border-radius: var(--border-radius-sm); cursor: pointer; transition: var(--transition); border: 1px solid var(--glass-border-light); position: relative;}
.draft-card:hover { background: rgba(255,255,255,0.08); border-color: var(--accent-primary); transform: translateY(-2px);}
.draft-date { font-size: 11px; color: var(--accent-secondary); margin-bottom: 6px; font-weight: 600; text-transform: uppercase;}
.draft-title { font-weight: 600; font-size: 15px; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.draft-preview { font-size: 13px; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Consistency Heatmap */
.heatmap-container { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; }
.heatmap-cell { width: 14px; height: 14px; background: rgba(255,255,255,0.05); border-radius: 2px; flex-shrink: 0; }
.heatmap-cell.active-1 { background: rgba(106, 144, 180, 0.4); }
.heatmap-cell.active-2 { background: rgba(106, 144, 180, 0.7); }
.heatmap-cell.active-3 { background: rgba(106, 144, 180, 1); }

/* Folder & Category Pills */
.folder-pill { background: rgba(139, 92, 246, 0.2); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.4); padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; margin-right: 6px;}
.category-pill { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.4); padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; margin-right: 6px;}

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

/* =========================================
   Ocean Bubble Animations
   ========================================= */
.bubbles-container {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0; /* Behind everything */
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -50px;
  background-image: url('bubble-pixel.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-color: transparent;
  animation: rise linear infinite;
  image-rendering: pixelated; /* To ensure sharp pixel art styling */
}

/* Give bubbles random properties for natural feel */
.bubble:nth-child(1) { width: 40px; height: 40px; left: 10%; animation-duration: 8s; animation-delay: 0s; }
.bubble:nth-child(2) { width: 20px; height: 20px; left: 20%; animation-duration: 5s; animation-delay: 1s; }
.bubble:nth-child(3) { width: 50px; height: 50px; left: 35%; animation-duration: 10s; animation-delay: 2s; }
.bubble:nth-child(4) { width: 30px; height: 30px; left: 50%; animation-duration: 7s; animation-delay: 0.5s; opacity: 0.6; }
.bubble:nth-child(5) { width: 15px; height: 15px; left: 60%; animation-duration: 6s; animation-delay: 3s; opacity: 0.8;}
.bubble:nth-child(6) { width: 60px; height: 60px; left: 75%; animation-duration: 12s; animation-delay: 1.5s; opacity: 0.5; }
.bubble:nth-child(7) { width: 25px; height: 25px; left: 85%; animation-duration: 8s; animation-delay: 0.2s; }
.bubble:nth-child(8) { width: 45px; height: 45px; left: 95%; animation-duration: 9s; animation-delay: 4s; }
.bubble:nth-child(9) { width: 10px; height: 10px; left: 45%; animation-duration: 4s; animation-delay: 2.5s; }
.bubble:nth-child(10) { width: 35px; height: 35px; left: 25%; animation-duration: 7.5s; animation-delay: 1.2s; }

@keyframes rise {
  0% { transform: translateY(0) scale(1) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateY(-50vh) scale(1.1) translateX(20px); }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) scale(1.2) translateX(-20px); opacity: 0; }
}

/* =========================================
   Whale Companion (Gamification)
   ========================================= */
@keyframes swimIdle {
  0% { transform: translateY(0px) rotate(0deg) scale(1, 1); }
  30% { transform: translateY(-6px) rotate(3deg) scale(1.05, 0.95); }
  50% { transform: translateY(-3px) rotate(0deg) scale(1, 1); }
  70% { transform: translateY(4px) rotate(-3deg) scale(0.95, 1.05); }
  100% { transform: translateY(0px) rotate(0deg) scale(1, 1); }
}

.whale-icon {
  animation: swimIdle 4s ease-in-out infinite;
  transform-origin: center;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.25));
}

.whale-companion {
  margin-left: auto; /* Push to right */
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid var(--glass-border-light);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 2;
  transition: var(--transition);
}

.whale-companion:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 25px rgba(106, 144, 180, 0.4);
}

.whale-icon {
  font-size: 32px;
  animation: float 4s ease-in-out infinite;
  transition: transform 0.3s;
}

.whale-icon.level-up {
  animation: levelUpBounce 0.5s ease;
}

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

@keyframes levelUpBounce {
  0% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.4) translateY(-10px) rotate(-10deg); }
  100% { transform: scale(1) translateY(0) rotate(0); }
}

.whale-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.whale-level {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.whale-exp-bar {
  width: 100px;
  height: 6px;
  background: rgba(0,0,0,0.3);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.whale-exp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), #10b981);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   Focus View (Deep Dive)
   ========================================= */
.focus-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 200px); /* Fill remaining space comfortably */
  gap: 40px;
}

.focus-ring {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Extra ocean styling for the focus ring */
  background: radial-gradient(circle at center, rgba(106, 144, 180, 0.1) 0%, var(--glass-bg) 70%);
  border: 2px solid var(--glass-border-light);
  box-shadow: 0 0 50px rgba(0,0,0,0.3), inset 0 0 30px rgba(106, 144, 180, 0.1);
  transition: all 0.5s ease;
}

.focus-ring::after {
  content: '';
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  border-radius: 50%;
  border: 1px dashed var(--accent-primary-glow);
  animation: rotateRing 30s linear infinite;
  opacity: 0.5;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.focus-ring.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 80px rgba(106, 144, 180, 0.4), inset 0 0 50px rgba(106, 144, 180, 0.2);
}

.focus-ring.active::after {
  border-color: var(--accent-primary);
  opacity: 1;
  animation-duration: 20s;
}

.time-display.massive {
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -3px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff, var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.focus-controls {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 400px;
}

.focus-controls button {
  padding: 16px 24px;
  font-size: 16px;
}

/* =========================================
   Sidebar Section Labels & Portfolio View
   ========================================= */
.nav-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 16px 4px 16px;
  pointer-events: none;
  opacity: 0.7;
}

.portfolio-container {
  max-width: 1000px;
  margin: 0 auto;
}

.portfolio-bio {
  padding: 32px;
}

/* Skills */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
}

.skill-level {
  color: var(--text-secondary);
  font-family: monospace;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: rgba(0,0,0,0.3);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 3px;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 16px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3px;
  width: 2px;
  background: var(--glass-border-light);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  left: -19px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 2px solid var(--bg-color);
  box-shadow: 0 0 10px var(--accent-primary-glow);
}

.timeline-content h4 {
  font-size: 16px;
  margin-bottom: 2px;
}

.timeline-date {
  font-size: 12px;
  color: var(--accent-secondary);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Showcase */
.showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.showcase-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.05);
}

.showcase-img {
  height: 120px;
  width: 100%;
}

.showcase-info {
  padding: 16px;
}

.showcase-info h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.showcase-info p {
  font-size: 13px;
  color: var(--text-secondary);
}
