@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
  /* Colors */
  --bg-base: hsl(222, 25%, 6%);
  --bg-surface: hsla(222, 20%, 11%, 0.75);
  --bg-card: hsla(222, 20%, 14%, 0.65);
  --bg-card-hover: hsla(222, 20%, 18%, 0.85);
  --border-light: rgba(255, 255, 255, 0.07);
  --border-focus: hsla(215, 90%, 50%, 0.4);
  
  --primary: hsl(215, 90%, 50%);
  --primary-glow: hsla(215, 90%, 50%, 0.35);
  --secondary: hsl(190, 95%, 45%);
  --secondary-glow: hsla(190, 95%, 45%, 0.3);
  
  --text-main: hsl(0, 0%, 95%);
  --text-muted: hsl(220, 10%, 70%);
  --text-dim: hsl(220, 10%, 50%);
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px var(--primary-glow);
  
  /* Fonts */
  --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  /* Layout */
  --sidebar-width: 230px;
  --nav-height: 70px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, hsla(215, 90%, 50%, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, hsla(190, 95%, 45%, 0.04) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

h1 {
  font-size: 2.2rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.8rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

h3 {
  font-size: 1.35rem;
}

p {
  line-height: 1.6;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--text-main);
  text-shadow: 0 0 8px var(--primary-glow);
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
/* Sidebar Navigation */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  z-index: 100;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
  text-align: center;
}

.logo-badge {
  width: 60px;
  height: 60px;
  border-radius: 30%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--bg-base);
  box-shadow: 0 0 20px var(--primary-glow);
  margin-bottom: 1rem;
  position: relative;
}

.logo-badge::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 32%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  z-index: -1;
  opacity: 0.5;
  filter: blur(4px);
}

.logo-text-title {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--text-main), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text-sub {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.25rem;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  padding-right: 4px;
}

.nav-item {
  width: 100%;
}

.nav-link-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}

.nav-link-btn i {
  font-size: 1.15rem;
  width: 20px;
  text-align: center;
}

.nav-link-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-light);
  padding-left: 1.5rem;
}

.nav-link-btn.active {
  background: linear-gradient(to right, hsla(215, 90%, 50%, 0.15), transparent);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  font-weight: 600;
}

.sidebar-footer {
  margin-top: auto;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

/* Main Content Area */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: calc(100% - var(--sidebar-width));
}

.mobile-header {
  display: none;
}

/* Page Section Containers */
.content-section {
  display: none;
  padding: 2rem 2.5rem 2rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto 0 0;
  width: 100%;
  animation: fadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.content-section.active {
  display: block;
}

/* ==========================================================================
   REUSABLE UTILITIES & GLASS DESIGN
   ========================================================================== */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-primary {
  background: hsla(142, 70%, 45%, 0.15);
  color: var(--primary);
  border: 1px solid hsla(142, 70%, 45%, 0.3);
}

.badge-secondary {
  background: hsla(180, 70%, 45%, 0.15);
  color: var(--secondary);
  border: 1px solid hsla(180, 70%, 45%, 0.3);
}

.section-title {
  margin-bottom: 2rem;
}

.title-glow {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ==========================================================================
   HOME / ABOUT ME SECTION
   ========================================================================== */
.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.hero-intro h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-intro h1 span {
  display: block;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.typing-text {
  border-right: 2px solid var(--primary);
  white-space: nowrap;
  animation: blink 0.75s step-end infinite;
  font-weight: 600;
  color: var(--primary);
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Interactive Student Card */
.student-card {
  background: linear-gradient(135deg, hsla(220, 20%, 15%, 0.9), hsla(220, 20%, 8%, 0.9));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.student-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, hsla(215, 90%, 50%, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.student-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.card-chip {
  width: 40px;
  height: 30px;
  background: linear-gradient(135deg, hsl(45, 60%, 50%), hsl(45, 80%, 40%));
  border-radius: 6px;
  position: relative;
}

.card-chip::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 8px;
  right: 8px;
  bottom: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.school-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}

.student-card-body {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
  box-shadow: 0 0 15px var(--primary-glow);
  flex-shrink: 0;
  overflow: hidden;
}

.avatar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.student-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.student-id {
  font-family: monospace;
  font-size: 1.05rem;
  color: var(--secondary);
  letter-spacing: 0.05em;
}

.student-major {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.student-class {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.student-card-footer {
  margin-top: 1.5rem;
  font-size: 0.7rem;
  text-align: right;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.goals-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.goal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.goal-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.goal-card h3 {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.goal-card h3 i {
  color: var(--secondary);
}

/* ==========================================================================
   PROJECTS HUB & WEEK SELECTOR
   ========================================================================== */
.project-hub-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.week-selector-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: sticky;
  top: 2rem;
}

.week-selector-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.week-selector-btn .wk-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.week-selector-btn .wk-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.week-selector-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.week-selector-btn.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, hsla(215, 90%, 50%, 0.1), transparent);
  box-shadow: 0 4px 15px rgba(50, 150, 255, 0.05);
}

.week-selector-btn.active .wk-num {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.week-selector-btn.active .wk-title {
  color: var(--text-muted);
}

.week-content-display {
  min-height: 500px;
}

.week-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.week-panel.active {
  display: block;
}

.week-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.week-header .badge {
  margin-bottom: 0.75rem;
}

.week-header h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.week-header .week-summary {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.week-block-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
}

/* ==========================================================================
   WEEK 1: STEPPER & GALLERY
   ========================================================================== */
.stepper-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.stepper-container::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 4px;
  bottom: 8px;
  width: 2px;
  background: var(--border-light);
}

.step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.step-row::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
  transform: translateY(-50%);
  border: 2px solid var(--bg-base);
  transition: var(--transition-smooth);
}

.step-info {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.step-num-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: monospace;
  font-weight: 700;
  font-size: 0.85rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.step-action-icon {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.step-row:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.step-row:hover::before {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.step-row:hover .step-num-badge {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.step-row:hover .step-action-icon {
  color: var(--primary);
  transform: scale(1.15);
}

/* ==========================================================================
   WEEK 2: SEARCH TABLE
   ========================================================================== */
.search-strings-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-string-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.search-string-card code {
  font-family: monospace;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: block;
  margin-bottom: 0.5rem;
  word-break: break-all;
}

.search-string-card p {
  font-size: 0.8rem;
  margin-bottom: 0;
  color: var(--text-dim);
}

/* Tables style */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.data-table th {
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--border-light);
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  vertical-align: top;
}

.data-table tbody tr {
  transition: var(--transition-smooth);
}

.data-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.rating-pill {
  background: hsla(45, 80%, 45%, 0.15);
  color: hsl(45, 80%, 55%);
  border: 1px solid hsla(45, 80%, 45%, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-family: monospace;
  display: inline-block;
}

/* ==========================================================================
   WEEK 3: PROMPTING LAB
   ========================================================================== */
.prompt-tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.prompt-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.prompt-tab-btn:hover {
  color: var(--text-main);
}

.prompt-tab-btn.active {
  color: var(--primary);
}

.prompt-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.85rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.prompt-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.prompt-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.prompt-card.level-1 {
  background: hsla(0, 0%, 15%, 0.3);
  border-top: 3px solid var(--text-dim);
}

.prompt-card.level-2 {
  background: hsla(180, 70%, 45%, 0.03);
  border-top: 3px solid var(--secondary);
}

.prompt-card.level-3 {
  background: hsla(142, 70%, 45%, 0.05);
  border-top: 3px solid var(--primary);
  box-shadow: 0 4px 20px rgba(142, 250, 150, 0.03);
}

.prompt-card-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.prompt-card-hdr h4 {
  font-size: 1rem;
}

.prompt-content {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: pre-line;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: var(--radius-sm);
  flex-grow: 1;
}

.rule-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.rule-mini-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.rule-mini-card i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.rule-mini-card h5 {
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.rule-mini-card p {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0;
  line-height: 1.3;
}

/* ==========================================================================
   WEEK 4: KANBAN & TEAM
   ========================================================================== */
.kanban-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.kanban-col {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.kanban-col-header {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.kanban-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.kanban-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.kanban-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
}

.card-tags {
  display: flex;
  gap: 0.25rem;
}

.card-tag {
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tag-red { background: rgba(239, 68, 68, 0.15); color: rgb(239, 68, 68); }
.tag-green { background: rgba(34, 197, 94, 0.15); color: rgb(34, 197, 94); }
.tag-blue { background: rgba(59, 130, 246, 0.15); color: rgb(59, 130, 246); }

.card-members {
  display: flex;
}

.card-avatar-bubble {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg-base);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-card);
  margin-left: -4px;
}

.card-avatar-bubble.member-alt {
  background: var(--secondary);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.screenshot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.screenshot-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 0.75rem;
  transition: var(--transition-smooth);
}

.screenshot-card:hover {
  border-color: var(--primary);
}

.screenshot-card:hover img {
  transform: scale(1.02);
}

.screenshot-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0;
}

/* Challenges component */
.challenge-item {
  background: hsla(0, 0%, 15%, 0.15);
  border-left: 3px solid var(--secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.challenge-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.challenge-item h4 i {
  color: hsl(350, 70%, 55%);
}

.challenge-item .solution {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-light);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

.challenge-item .solution strong {
  color: var(--primary);
}

/* ==========================================================================
   WEEK 5: CREATION / BLOG SHOWCASE
   ========================================================================== */
.creation-display {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.blog-viewer {
  background: linear-gradient(180deg, hsla(220, 20%, 15%, 0.4), transparent);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  max-height: 520px;
  overflow-y: auto;
}

.blog-body-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.tool-badge-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   WEEK 6: RESPONSIBLE AI
   ========================================================================== */
.academic-integrity-cert {
  background: linear-gradient(135deg, hsla(215, 90%, 50%, 0.05), hsla(190, 95%, 45%, 0.02));
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 0 25px rgba(50, 150, 255, 0.06);
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.academic-integrity-cert::before {
  content: 'APPROVED';
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--primary);
  color: var(--bg-base);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.3rem 2.5rem;
  transform: rotate(45deg);
  letter-spacing: 0.1em;
}

.cert-stamp {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.cert-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.cert-subtitle {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.cert-list {
  text-align: left;
  max-width: 650px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cert-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cert-item i {
  color: var(--primary);
  margin-top: 0.2rem;
  font-size: 1.1rem;
}

.cert-item-text strong {
  color: var(--text-main);
  font-size: 0.9rem;
}

.cert-item-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.cert-sign-area {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
  border-top: 1px dashed var(--border-light);
  padding-top: 1.5rem;
}

.sign-box {
  text-align: center;
  font-size: 0.8rem;
}

.signature-name {
  font-family: 'Outfit', cursive, sans-serif;
  font-size: 1.35rem;
  color: var(--secondary);
  font-weight: 600;
  margin: 0.5rem 0;
}

.sign-title {
  color: var(--text-dim);
}

/* ==========================================================================
   REFLECTIONS & SVG SKILL CHART
   ========================================================================== */
.reflection-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.journal-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.journal-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.journal-entry h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.journal-entry p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* SVG Radar Chart styles */
.chart-card {
  text-align: center;
}

.chart-svg-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
  position: relative;
}

.radar-chart {
  max-width: 320px;
  width: 100%;
  height: auto;
}

.chart-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  text-align: left;
  font-size: 0.75rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
}

.legend-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.legend-item:nth-child(2) .legend-color-dot { background: var(--secondary); }
.legend-item:nth-child(3) .legend-color-dot { background: hsl(45, 80%, 50%); }
.legend-item:nth-child(4) .legend-color-dot { background: hsl(350, 70%, 50%); }
.legend-item:nth-child(5) .legend-color-dot { background: hsl(280, 70%, 50%); }

/* ==========================================================================
   LIGHTBOX / IMAGE MODAL VIEWER
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 10, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-content-container {
  max-width: 90%;
  max-height: 85%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lightbox-caption {
  color: var(--text-main);
  text-align: center;
  font-size: 0.95rem;
  max-width: 600px;
  line-height: 1.5;
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-close-btn:hover {
  color: var(--primary);
  transform: scale(1.15);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes blink {
  from, to { border-color: transparent }
  50% { border-color: var(--primary) }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .student-card {
    max-width: 480px;
    justify-self: start;
  }
}

@media (max-width: 992px) {
  body {
    flex-direction: column;
  }
  
  .sidebar {
    display: none; /* Hide desktop sidebar */
  }
  
  .main-wrapper {
    margin-left: 0;
    width: 100%;
    padding-bottom: 75px; /* space for mobile navigation */
  }
  
  /* Mobile Sticky Top Header */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .mobile-logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--bg-base);
    font-size: 1.1rem;
  }
  
  .mobile-logo-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
  }
  
  .mobile-nav-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  /* Mobile Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    justify-content: space-around;
    align-items: center;
    z-index: 100;
  }
  
  .mobile-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 20%;
  }
  
  .mobile-nav-btn i {
    font-size: 1.25rem;
  }
  
  .mobile-nav-btn.active {
    color: var(--primary);
  }
  
  .content-section {
    padding: 2rem 1.5rem;
  }
  
  .project-hub-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .week-selector-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    position: static;
  }
  
  .week-selector-btn {
    flex-shrink: 0;
    padding: 0.6rem 1rem;
  }
  
  .week-selector-btn .wk-num {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .search-strings-list {
    grid-template-columns: 1fr;
  }
  
  .prompt-box {
    grid-template-columns: 1fr;
  }
  
  .rule-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .kanban-grid {
    grid-template-columns: 1fr;
  }
  
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
  
  .creation-display {
    grid-template-columns: 1fr;
  }
  
  .reflection-layout {
    grid-template-columns: 1fr;
  }
  
  .cert-sign-area {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .goals-section {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   DEVELOPER SKILLS & CONTACT TERMINAL
   ========================================================================== */
.skills-container {
  margin-top: 1.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition-smooth);
}

.skill-category-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.skill-category-card h4 {
  font-size: 0.95rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.skill-tag:hover {
  background: hsla(215, 90%, 50%, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* Contact Grid Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.contact-info-link:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.contact-icon-wrapper {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: hsla(215, 90%, 50%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.contact-info-link:hover .contact-icon-wrapper {
  background: var(--primary);
  color: var(--bg-base);
  box-shadow: 0 0 10px var(--primary-glow);
}

.contact-details-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-details-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-details-value {
  font-size: 0.9rem;
  font-weight: 600;
}

/* CLI Tech Mail Terminal */
.contact-terminal {
  background: #080c14;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-family: monospace;
}

.terminal-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.td-red { background: #ff5f56; }
.td-yellow { background: #ffbd2e; }
.td-green { background: #27c93f; }

.terminal-title {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.terminal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 280px;
  color: #38ef7d; /* matrix green */
}

.terminal-body.blue-theme {
  color: #00f2fe; /* glowing cyan terminal */
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.terminal-prompt {
  color: var(--primary);
}

.terminal-input-line {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.terminal-input-line span {
  color: var(--secondary);
  margin-right: 0.5rem;
}

.terminal-field {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: monospace;
  font-size: 0.85rem;
  flex-grow: 1;
}

.terminal-field::placeholder {
  color: var(--text-dim);
  opacity: 0.5;
}

.terminal-btn {
  background: var(--primary);
  border: none;
  color: var(--bg-base);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-self: flex-end;
  transition: var(--transition-smooth);
}

.terminal-btn:hover {
  box-shadow: 0 0 12px var(--primary-glow);
  transform: translateY(-1px);
}

.terminal-output {
  white-space: pre-line;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-light);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  display: none;
}

/* ==========================================================================
   PRINT MEDIA STYLESHEET (ALL TABS TO SINGLE PDF)
   ========================================================================== */
@media print {
  /* Force exact background colors and graphic rendering */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  /* Reset layout structure for print flow */
  html, body {
    background-color: #0b0f19 !important; /* Retain premium dark theme */
    background-image: none !important;
    color: #f2f2f2 !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Hide interactive, scrolling and navigational UI elements */
  .sidebar,
  .mobile-header,
  .mobile-bottom-nav,
  .week-selector-nav,
  .prompt-tabs-nav,
  .terminal-btn,
  .lightbox-overlay,
  #image-lightbox-viewer,
  .sidebar-footer {
    display: none !important;
  }

  /* Expand the content area to the full page width */
  .main-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }

  /* Force display of all 3 main dashboard sections */
  .content-section {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    page-break-before: always !important;
    break-before: page !important;
  }

  /* The first page (Intro Section) should not have a page break before it */
  #sec-intro {
    page-break-before: avoid !important;
    break-before: avoid !important;
  }

  /* Projects section week panels layout normalization */
  .project-hub-layout {
    display: block !important;
  }

  .week-content-display {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }

  /* Force display of all 7 week panels simultaneously */
  .week-panel {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    page-break-before: always !important;
    break-before: page !important;
    margin-bottom: 3rem !important;
  }

  /* Avoid page break before first week panel */
  #panel-week1 {
    page-break-before: avoid !important;
    break-before: avoid !important;
  }

  /* Avoid splitting containers or page overflow issues */
  h1, h2, h3, h4, h5, h6,
  .glass-panel,
  .goal-card,
  .skill-category-card,
  .kanban-card,
  .screenshot-card,
  .journal-entry,
  .chart-card,
  .step-row,
  .search-string-card,
  .academic-integrity-cert {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Adjust grid columns for print proportions */
  .grid-2,
  .goals-section,
  .skills-grid,
  .rule-cards-grid,
  .screenshot-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
  }

  .kanban-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 1rem !important;
  }

  .creation-display {
    display: block !important;
  }
  
  .creation-display .blog-viewer {
    margin-bottom: 2rem !important;
  }

  /* Normalise tables for printing without overflow */
  .table-responsive {
    overflow: visible !important;
  }

  table.data-table {
    width: 100% !important;
    table-layout: auto !important;
    page-break-inside: avoid !important;
  }

  table.data-table tr {
    page-break-inside: avoid !important;
  }

  /* Hide interactive terminal input fields but retain CLI header/frame */
  .terminal-body .terminal-line:has(input),
  .terminal-body .terminal-line:has(button) {
    display: none !important;
  }

  .terminal-output {
    display: block !important;
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0.5rem !important;
  }
}


