/* Ambition Hub — Light Theme + Full-BG Skill Pages */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Poppins:wght@600;700;800;900&display=swap");

/* ── LIGHT THEME (default) ──────────────────────────────────────────────── */
:root {
  --bg:           #FFFFFF;
  --bg-card:      #F8FAFC;
  --nav-bg:       #FFFFFF;
  --bg-hover:     #F1F5F9;

  --text:         #111827;
  --text-dim:     #6B7280;
  --text-bright:  #030712;

  --brand-orange: #f68712;
  --brand-navy:   #03466e;

  --blue:         #3B82F6;
  --pink:         #EC4899;
  --green:        #10B981;
  --purple:       #8B5CF6;
  --orange:       #f68712;
  --cyan:         #06B6D4;
  --red:          #EF4444;

  --glass:        rgba(0, 0, 0, 0.04);
  --glass-border: rgba(0, 0, 0, 0.10);
  --shadow:       0 2px 20px rgba(0, 0, 0, 0.08);
  --input-bg:     #F1F5F9;

  --radius:    16px;
  --radius-sm:  8px;
  --radius-lg: 24px;
  --nav-h:     72px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── DARK THEME (user toggle) ───────────────────────────────────────────── */
html[data-theme="dark"] {
  --bg:           #0A0A0F;
  --bg-card:      #14141F;
  --nav-bg:       #0F0F18;
  --bg-hover:     #1A1A28;

  --text:         #FFFFFF;
  --text-dim:     #9CA3AF;
  --text-bright:  #F9FAFB;

  --glass:        rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.10);
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.50);
  --input-bg:     rgba(255, 255, 255, 0.05);
}

/* ── RESET ──────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ── SKILL PAGES — FULL-PAGE BACKGROUND IMAGE ───────────────────────────── */
body[data-skill] {
  background-attachment: fixed;
  background-size:       cover;
  background-position:   center;
  background-repeat:     no-repeat;
  color: #FFFFFF;
}

/* Dark overlay for readability */
body[data-skill]::before {
  content:  '';
  position: fixed;
  inset:    0;
  background: rgba(8, 8, 14, var(--overlay-opacity, 0.78));
  z-index:  0;
  pointer-events: none;
}

body[data-skill] .main {
  position:   relative;
  z-index:    1;
  background: transparent;
  color:      #FFFFFF;
}

/* Glassy nav on skill pages */
body[data-skill] .topnav {
  background:    rgba(8, 8, 14, 0.55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter:         blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-skill] .nav-center,
body[data-skill] .nav-actions {
  background: transparent;
}

body[data-skill] .nav-link { color: rgba(255,255,255,0.7); }
body[data-skill] .nav-link:hover { color: #ffffff; }
body[data-skill] .nav-link.active { color: var(--brand-orange); }

/* Skill hero: image hidden (body IS the bg), overlay gradient */
body[data-skill] .skill-hero-image { display: none; }
body[data-skill] .skill-hero { background: transparent; }
body[data-skill] .skill-hero-overlay {
  background: linear-gradient(
    to top,
    rgba(8, 8, 14, 0.92) 0%,
    rgba(8, 8, 14, 0.40) 60%,
    transparent 100%
  );
}

/* Glassmorphism cards on skill pages */
body[data-skill] .card {
  background:      rgba(255, 255, 255, 0.07);
  border:          1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color:           #fff;
}

body[data-skill] .card-title h3,
body[data-skill] .card h3 { color: #ffffff; }

body[data-skill] .info-card {
  background: rgba(255, 255, 255, 0.07);
  border:     1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

body[data-skill] .info-card h3 { color: var(--brand-orange); }
body[data-skill] .info-card p  { color: rgba(255,255,255,0.75); }

body[data-skill] .task-item { border-color: rgba(255,255,255,0.08); color: #fff; }
body[data-skill] .notes { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #fff; }
body[data-skill] .task-input input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #fff; }

/* ── FLOATING OVERLAY CONTROL ───────────────────────────────────────────── */
.overlay-ctrl {
  position:   fixed;
  bottom:     24px;
  right:      24px;
  z-index:    50;
  background: rgba(10, 10, 15, 0.88);
  border:     1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding:    12px 16px;
  display:    flex;
  align-items: center;
  gap:        10px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter:         blur(16px);
  font-size:  0.78rem;
  color:      rgba(255, 255, 255, 0.72);
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.overlay-ctrl input[type="range"] {
  width:         80px;
  accent-color:  var(--brand-orange);
  cursor:        pointer;
}

/* ── TOP NAVIGATION ─────────────────────────────────────────────────────── */
.topnav {
  position:   fixed;
  top:        0;
  left:       0;
  right:      0;
  height:     var(--nav-h);
  z-index:    200;
  display:    flex;
  align-items: stretch;
  background: var(--nav-bg);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s ease;
}

/* Orange logo block */
.nav-logo-block {
  background: var(--brand-orange);
  display:    flex;
  align-items: center;
  gap:        12px;
  padding:    0 28px;
  flex-shrink: 0;
  text-decoration: none;
  transition: var(--transition);
}

.nav-logo-block:hover { background: #e07810; }

.nav-logo {
  width:  44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  flex-shrink: 0;
}

.nav-brand-name {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size:   1.25rem;
  color:       #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav center */
.nav-center {
  background: transparent;
  flex:       1;
  display:    flex;
  align-items: center;
  padding:    0 32px;
  gap:        2px;
  overflow:   hidden;
  border-bottom: none;
}

.nav-link {
  padding:    8px 14px;
  border-radius: var(--radius-sm);
  color:      var(--text-dim);
  font-weight: 600;
  font-size:  0.9rem;
  transition: var(--transition);
  display:    flex;
  align-items: center;
  gap:        8px;
  white-space: nowrap;
  position:   relative;
}

.nav-link::after {
  content:  '';
  position: absolute;
  bottom:   0;
  left:     14px;
  right:    14px;
  height:   2px;
  background: var(--brand-orange);
  transform: scaleX(0);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover {
  color:      var(--text);
  background: var(--glass);
}

.nav-link:hover::after { transform: scaleX(1); }

.nav-link.active {
  color:      var(--brand-orange);
  background: rgba(246, 135, 18, 0.08);
}

.nav-link.active::after { transform: scaleX(1); }
.nav-link i { font-size: 0.85rem; }

/* Nav right actions */
.nav-actions {
  background: transparent;
  display:    flex;
  align-items: center;
  gap:        10px;
  padding:    0 20px;
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  width:  38px;
  height: 38px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color:  var(--text-dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size:  0.95rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: rgba(246, 135, 18, 0.15);
  border-color: rgba(246, 135, 18, 0.4);
  color: var(--brand-orange);
}

/* Hamburger — mobile only */
.nav-hamburger {
  display: none;
  width:   40px;
  height:  40px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color:  var(--text-dim);
  cursor: pointer;
  place-items: center;
  font-size:   1.1rem;
  transition:  var(--transition);
}

.nav-hamburger:hover {
  background: rgba(246, 135, 18, 0.15);
  border-color: rgba(246, 135, 18, 0.4);
  color: var(--brand-orange);
}

/* Language Switcher */
.language-switcher {
  display: flex;
  gap:     4px;
  padding: 4px;
  background:  var(--glass);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.lang-btn {
  padding:    5px 10px;
  background: transparent;
  border:     none;
  color:      var(--text-dim);
  cursor:     pointer;
  border-radius: 6px;
  font-weight: 600;
  font-size:  0.8rem;
  transition: var(--transition);
  display:    flex;
  align-items: center;
  gap:        5px;
}

.lang-btn:hover { color: var(--text); background: var(--bg-hover); }

.lang-btn.active {
  background: var(--brand-orange);
  color:      #fff;
}

/* Mobile nav drawer */
.nav-drawer {
  display:  none;
  position: fixed;
  top:      var(--nav-h);
  left:     0;
  right:    0;
  background: var(--nav-bg);
  border-bottom: 2px solid rgba(246, 135, 18, 0.4);
  z-index:  199;
  padding:  16px;
  flex-direction: column;
  gap:      4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

html[data-theme="dark"] .nav-drawer {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.nav-open .nav-drawer { display: flex; }

.nav-drawer .nav-link {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 1rem;
}

.nav-drawer .nav-link::after { display: none; }

/* ── MAIN CONTENT ───────────────────────────────────────────────────────── */
.main {
  padding-top: var(--nav-h);
  min-height:  100vh;
}

/* ── HERO — INDEX PAGE ──────────────────────────────────────────────────── */
.hero-section {
  position:   relative;
  height:     calc(100vh - var(--nav-h));
  min-height: 500px;
  overflow:   hidden;
  background: #0a0a0f;
}

.hero-image {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

.hero-overlay {
  position: absolute;
  inset:    0;
  background: linear-gradient(
    105deg,
    rgba(10, 10, 15, 0.90) 0%,
    rgba(10, 10, 15, 0.72) 45%,
    rgba(10, 10, 15, 0.20) 100%
  );
}

.hero-content {
  position:  absolute;
  top:       50%;
  left:      8%;
  transform: translateY(-50%);
  max-width: 600px;
  z-index:   2;
}

.hero-tagline {
  display:     flex;
  align-items: flex-start;
  gap:         12px;
  color:       var(--brand-orange);
  font-weight: 700;
  font-size:   1rem;
  letter-spacing: 1px;
  text-transform: none;
  margin-bottom: 20px;
  line-height: 1.5;
}

.hero-tagline::before {
  content:      '';
  display:      block;
  width:        40px;
  min-width:    40px;
  height:       3px;
  margin-top:   9px;
  background:   var(--brand-orange);
  border-radius: 2px;
}

/* Hero tagline cycling quote */
#heroTaglineQuote {
  color:       var(--brand-orange);
  font-weight: 700;
  font-size:   0.95rem;
  line-height: 1.5;
  font-style:  italic;
  transition:  opacity 0.5s ease;
  max-width:   520px;
}

.hero-content h1 {
  font-family: "Poppins", sans-serif;
  font-size:   clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
  color:       #FFFFFF;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  font-size:   1.1rem;
  color:       rgba(255, 255, 255, 0.72);
  font-weight: 500;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display:     flex;
  align-items: center;
  gap:         20px;
  flex-wrap:   wrap;
}

.btn-hero {
  display:     inline-flex;
  align-items: center;
  gap:         8px;
  padding:     14px 32px;
  background:  var(--brand-orange);
  color:       #fff;
  font-weight: 700;
  font-size:   0.95rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition:  var(--transition);
  box-shadow:  0 4px 20px rgba(246, 135, 18, 0.4);
  border:      none;
  cursor:      pointer;
}

.btn-hero:hover {
  background:  #e07810;
  transform:   translateY(-2px);
  box-shadow:  0 8px 28px rgba(246, 135, 18, 0.5);
}

.hero-countdown {
  display:     flex;
  align-items: center;
  gap:         10px;
  color:       rgba(255, 255, 255, 0.7);
  font-size:   0.9rem;
}

.hero-countdown strong {
  color:       var(--brand-orange);
  font-family: "Poppins", sans-serif;
  font-size:   1.1rem;
  font-weight: 800;
}

/* Hero arrows */
.hero-arrow {
  position:  absolute;
  top:       50%;
  transform: translateY(-50%);
  width:     52px;
  height:    52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border:    2px solid rgba(255, 255, 255, 0.2);
  color:     #fff;
  cursor:    pointer;
  display:   grid;
  place-items: center;
  font-size: 1.1rem;
  z-index:   3;
  transition: var(--transition);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.hero-arrow:hover {
  background:  var(--brand-orange);
  border-color: var(--brand-orange);
  box-shadow:  0 4px 20px rgba(246, 135, 18, 0.5);
}

.hero-arrow-prev { left: 28px; }
.hero-arrow-next { right: 28px; }

/* Hero dots */
.hero-dots {
  position:  absolute;
  bottom:    28px;
  left:      50%;
  transform: translateX(-50%);
  display:   flex;
  gap:       8px;
  z-index:   3;
}

.hero-dots button {
  width:  8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border:  none;
  cursor:  pointer;
  transition: all 0.2s;
}

.hero-dots button.active {
  background:   var(--brand-orange);
  width:        28px;
  border-radius: 4px;
}

/* ── PAGE SECTIONS ──────────────────────────────────────────────────────── */
.page-section       { padding: 60px 80px; }
.page-section-narrow { padding: 48px 80px; }

.section-header {
  display:     flex;
  align-items: center;
  gap:         16px;
  margin-bottom: 36px;
}

.section-accent {
  display:     flex;
  align-items: center;
  gap:         10px;
  color:       var(--brand-orange);
  font-weight: 700;
  font-size:   0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.section-accent::before {
  content:  '';
  display:  block;
  width:    28px;
  height:   3px;
  background: var(--brand-orange);
  border-radius: 2px;
}

.section-title {
  font-family:  "Poppins", sans-serif;
  font-size:    2rem;
  font-weight:  800;
  letter-spacing: -1px;
  color:        var(--text-bright);
}

/* ── SKILLS GRID ────────────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.skill-card {
  position:     relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow:     hidden;
  display:      block;
  transition:   var(--transition);
  box-shadow:   0 4px 16px rgba(0, 0, 0, 0.15);
}

.skill-card:hover {
  transform:  translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.skill-card img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.skill-card:hover img { transform: scale(1.08); }

.skill-card-content {
  position: absolute;
  bottom:   0;
  left:     0;
  right:    0;
  padding:  16px 20px;
  display:  flex;
  align-items: center;
  gap:      10px;
  font-weight: 700;
  font-size:   1rem;
  background:  linear-gradient(to top, rgba(10,10,15,0.95), rgba(10,10,15,0.0));
  padding-top: 40px;
  color:    #fff;
}

.skill-card-content i         { font-size: 1.1rem; color: var(--brand-orange); }
.skill-card[data-color="blue"]   .skill-card-content i { color: #60a5fa; }
.skill-card[data-color="pink"]   .skill-card-content i { color: #f472b6; }
.skill-card[data-color="green"]  .skill-card-content i { color: #34d399; }
.skill-card[data-color="purple"] .skill-card-content i { color: #a78bfa; }
.skill-card[data-color="orange"] .skill-card-content i { color: #fbbf24; }

.skill-card::before {
  content:  '';
  position: absolute;
  bottom:   0;
  left:     0;
  right:    0;
  height:   3px;
  background: var(--brand-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
  z-index:  2;
}

.skill-card:hover::before { transform: scaleX(1); }

/* ── MANAGE SKILLS CARD (desktop only) ──────────────────────────────────── */
.skill-card--manage {
  background:   var(--bg-card);
  border:       2px dashed rgba(246, 135, 18, 0.35);
  cursor:       pointer;
  align-items:  center;
  justify-content: center;
  font-family:  inherit;
}

.skill-card--manage:hover {
  border-color: var(--brand-orange);
  background:   rgba(246, 135, 18, 0.05);
}

.skill-card--manage .skill-card-content--manage {
  position:    relative;
  background:  none;
  padding:     0;
  justify-content: center;
  flex-direction: column;
  gap:         12px;
  text-align:  center;
  color:       var(--brand-orange);
}

.skill-card--manage .skill-card-content--manage i {
  font-size: 2rem;
  color:     var(--brand-orange);
  display:   block;
}

.skill-card--manage .skill-card-content--manage span {
  font-size:   1rem;
  font-weight: 700;
  color:       var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .skill-card--manage { display: none; }
}

/* ── CONTENT ROW (carousel + info) ─────────────────────────────────────── */
.content-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

/* ── CAROUSEL ───────────────────────────────────────────────────────────── */
.carousel-wrapper {
  background:   var(--bg-card);
  border-radius: var(--radius);
  overflow:     hidden;
  border:       1px solid var(--glass-border);
  box-shadow:   var(--shadow);
}

.carousel           { position: relative; height: 380px; }
.carousel-track     { display: flex; height: 100%; transition: transform 0.5s ease; }

.carousel-slide {
  min-width:  100%;
  height:     100%;
  position:   relative;
  background-size:     cover;
  background-position: center;
  display:    flex;
  flex-direction: column;
  align-items:    flex-start;
  justify-content: flex-end;
  padding:    40px;
}

.carousel-slide::before {
  content:  '';
  position: absolute;
  inset:    0;
  background: linear-gradient(to top, rgba(10,10,15,0.92) 0%, rgba(10,10,15,0.3) 100%);
}

.carousel-slide h2,
.carousel-slide p     { position: relative; z-index: 2; }

.carousel-slide h2 {
  font-family: "Poppins", sans-serif;
  font-size:   1.6rem;
  margin-bottom: 10px;
  font-weight: 800;
  color:       #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  text-align:  left;
}

.carousel-slide p {
  font-size:   1rem;
  line-height: 1.7;
  color:       rgba(255,255,255,0.72);
  max-width:   500px;
  text-align:  left;
}

.carousel-controls {
  position: absolute;
  bottom:   16px;
  right:    16px;
  display:  flex;
  gap:      8px;
  z-index:  3;
}

.carousel-controls button {
  width:  36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border:  1px solid rgba(255,255,255,0.2);
  color:   var(--text);
  cursor:  pointer;
  transition: all 0.2s;
}

.carousel-controls button:hover {
  background:  var(--brand-orange);
  border-color: var(--brand-orange);
  color:       #fff;
}

.carousel-dots {
  position: absolute;
  bottom:   20px;
  left:     40px;
  display:  flex;
  gap:      8px;
  z-index:  3;
}

.carousel-dots button {
  width:  8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border:  none;
  cursor:  pointer;
  transition: all 0.2s;
}

.carousel-dots button.active {
  background:   var(--brand-orange);
  width:        24px;
  border-radius: 4px;
}

/* ── INFO CARDS (sidebar-column) ────────────────────────────────────────── */
.sidebar-content {
  display:        flex;
  flex-direction: column;
  gap:            20px;
}

.info-card {
  background:   var(--bg-card);
  padding:      24px;
  border-radius: var(--radius);
  border:       1px solid var(--glass-border);
  box-shadow:   var(--shadow);
}

.info-card h3 {
  font-family:  "Poppins", sans-serif;
  font-size:    1rem;
  margin-bottom: 12px;
  font-weight:  800;
  color:        var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-card p      { color: var(--text-dim); line-height: 1.7; }
.info-card small  { color: var(--text-dim); font-size: 0.85rem; }

.countdown {
  font-family:  "Poppins", sans-serif;
  font-size:    2rem;
  font-weight:  900;
  color:        var(--text-bright);
  margin:       8px 0;
  letter-spacing: -1px;
}

/* ── BOTTOM QUOTE CARDS ─────────────────────────────────────────────────── */
.bottom-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.quote-card {
  position:     relative;
  background:   var(--bg-card);
  border-radius: var(--radius);
  padding:      32px;
  min-height:   200px;
  overflow:     hidden;
  background-size:     cover;
  background-position: center;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.quote-card::before {
  content:  '';
  position: absolute;
  inset:    0;
  background: rgba(10, 10, 15, 0.82);
}

.quote-card h3,
.quote-card p,
.quote-card button { position: relative; z-index: 2; }

.quote-card h3 {
  font-family:  "Poppins", sans-serif;
  font-size:    1.1rem;
  margin-bottom: 12px;
  font-weight:  700;
  color:        var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quote-card p { color: rgba(255,255,255,0.75); line-height: 1.7; }

.quote-card::after {
  content:  '';
  position: absolute;
  top:      0;
  left:     0;
  bottom:   0;
  width:    4px;
  background: var(--brand-orange);
  border-radius: 4px 0 0 4px;
}

.btn-refresh {
  position: absolute;
  top:      20px;
  right:    20px;
  width:    36px;
  height:   36px;
  border-radius: 50%;
  background: rgba(246,135,18,0.15);
  border:    1px solid rgba(246,135,18,0.3);
  color:     var(--brand-orange);
  cursor:    pointer;
  display:   grid;
  place-items: center;
  z-index:   3;
  transition: var(--transition);
}

.btn-refresh:hover {
  background: var(--brand-orange);
  color:      #fff;
  transform:  rotate(180deg);
}

/* ── SKILL PAGE HERO ────────────────────────────────────────────────────── */
.skill-hero {
  position:   relative;
  height:     55vh;
  min-height: 380px;
  overflow:   hidden;
  background: #0a0a0f;
}

.skill-hero-image {
  width:      100%;
  height:     100%;
  object-fit: cover;
}

.skill-hero-overlay {
  position: absolute;
  inset:    0;
  background: linear-gradient(
    105deg,
    rgba(10,10,15,0.92) 0%,
    rgba(10,10,15,0.65) 55%,
    rgba(10,10,15,0.25) 100%
  );
}

.skill-hero-bg {
  position: absolute;
  inset:    0;
  z-index:  0;
}

.skill-hero-content {
  position: absolute;
  bottom:   0;
  left:     0;
  right:    0;
  padding:  40px 80px;
  z-index:  2;
}

.skill-hero-content h1 {
  font-family:  "Poppins", sans-serif;
  font-size:    clamp(2rem, 4vw, 3rem);
  margin-bottom: 8px;
  font-weight:  900;
  color:        var(--text-bright);
  text-shadow:  0 2px 12px rgba(0, 0, 0, 0.6);
}

.skill-hero-content p { color: rgba(255,255,255,0.72); font-size: 1.05rem; }

/* ── BADGES ─────────────────────────────────────────────────────────────── */
.badge {
  display:     inline-flex;
  align-items: center;
  gap:         8px;
  padding:     6px 14px;
  border-radius: 999px;
  background:  rgba(246, 135, 18, 0.12);
  border:      1px solid rgba(246, 135, 18, 0.35);
  color:       var(--brand-orange);
  font-size:   0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.badge i { color: var(--brand-orange); }

.accent-badge {
  display:     inline-flex;
  align-items: center;
  gap:         8px;
  padding:     8px 18px;
  background:  var(--brand-orange);
  color:       #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size:   0.9rem;
}

/* ── CARDS ──────────────────────────────────────────────────────────────── */
.card {
  background:   var(--bg-card);
  padding:      24px;
  border-radius: var(--radius);
  border:       1px solid var(--glass-border);
  box-shadow:   var(--shadow);
  transition:   background 0.3s ease, border-color 0.3s ease;
}

.card-title {
  display:     flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-title h3 {
  font-family: "Poppins", sans-serif;
  font-size:   1.1rem;
  font-weight: 700;
  color:       var(--text-bright);
}

.focus-banner {
  background:  rgba(246, 135, 18, 0.08);
  padding:     20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--brand-orange);
}

.focus-banner strong {
  display:     block;
  margin-bottom: 8px;
  font-size:   1.05rem;
  color:       var(--text-bright);
}

.task-list { list-style: none; padding: 0; margin: 0; }

.task-item {
  display:     flex;
  align-items: center;
  gap:         12px;
  padding:     10px 0;
  border-bottom: 1px solid var(--glass-border);
  color:       var(--text);
}

.task-item input[type="checkbox"] {
  width:  18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--brand-orange);
}

.task-input { display: flex; gap: 12px; margin-top: 16px; }

.task-input input {
  flex:       1;
  padding:    10px 14px;
  background: var(--input-bg);
  border:     1px solid var(--glass-border);
  border-radius: var(--radius);
  color:      var(--text);
  font-family: inherit;
}

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.button {
  padding:     12px 24px;
  background:  var(--brand-orange);
  color:       #fff;
  border:      none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size:   0.9rem;
  cursor:      pointer;
  transition:  var(--transition);
  box-shadow:  0 4px 14px rgba(246, 135, 18, 0.28);
  letter-spacing: 0.3px;
  display:     inline-flex;
  align-items: center;
  gap:         8px;
}

.button:hover {
  background:  #e07810;
  transform:   translateY(-2px);
  box-shadow:  0 8px 22px rgba(246, 135, 18, 0.42);
}

.button:active { transform: translateY(0); }

.button.secondary {
  background: transparent;
  border:     1px solid var(--glass-border);
  color:      var(--text-dim);
  box-shadow: none;
}

.button.secondary:hover {
  background:  var(--bg-hover);
  border-color: var(--brand-orange);
  color:       var(--brand-orange);
  box-shadow:  none;
  transform:   none;
}

/* ── NOTES / FORM ───────────────────────────────────────────────────────── */
.notes {
  width:       100%;
  min-height:  150px;
  padding:     16px;
  background:  var(--input-bg);
  border:      1px solid var(--glass-border);
  border-radius: var(--radius);
  color:       var(--text);
  font-family: inherit;
  resize:      vertical;
}

.notes:focus { outline: none; border-color: var(--brand-orange); }

/* ── LAYOUT HELPERS ─────────────────────────────────────────────────────── */
.grid           { display: grid; gap: 24px; }
.grid.two       { grid-template-columns: repeat(2, 1fr); }
.section-gap    { margin-top: 40px; }

.data-table     { width: 100%; border-collapse: collapse; margin-top: 16px; }
.data-table th,
.data-table td  { padding: 12px; text-align: left; border-bottom: 1px solid var(--glass-border); }
.data-table th  { font-weight: 600; color: var(--brand-orange); }

/* ── ROADMAP ────────────────────────────────────────────────────────────── */
.roadmap-phase {
  margin:       20px 0;
  background:   var(--bg-card);
  border-radius: var(--radius);
  overflow:     hidden;
  border:       1px solid var(--glass-border);
}

body[data-skill] .roadmap-phase {
  background: rgba(255,255,255,0.06);
  border:     1px solid rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.phase-summary {
  padding:  20px 24px;
  cursor:   pointer;
  display:  flex;
  justify-content: space-between;
  align-items: center;
}

.phase-summary h5 {
  font-family: "Poppins", sans-serif;
  font-size:   1.05rem;
  font-weight: 700;
}

.phase-body {
  max-height: 0;
  overflow:   hidden;
  transition: max-height 0.3s ease;
}

.roadmap-phase.open .phase-body {
  max-height: 2000px;
  padding:    0 24px 24px;
}

.phase-active {
  border:     2px solid var(--brand-orange);
  box-shadow: 0 4px 20px rgba(246, 135, 18, 0.2);
}

.roadmap-card        { margin-top: 32px; }
.roadmap-card strong { color: var(--brand-orange); }

/* Collapsible cards */
.collapsible-card .card-title { cursor: pointer; -webkit-user-select: none; user-select: none; }
.collapsible-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.collapsible-card.expanded .collapsible-body { max-height: 3000px; }

/* ── PAGE HEADER ────────────────────────────────────────────────────────── */
.page-header { margin-bottom: 32px; }

.page-header h1 {
  font-family:  "Poppins", sans-serif;
  font-size:    2.2rem;
  margin-bottom: 8px;
  font-weight:  800;
  color:        var(--text-bright);
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.app-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── ICON BUTTONS ───────────────────────────────────────────────────────── */
.icon-button {
  background: transparent;
  border:     none;
  color:      var(--text-dim);
  cursor:     pointer;
  padding:    4px 8px;
  transition: color 0.2s;
}

.icon-button:hover { color: var(--text); }

.task-actions { display: flex; gap: 4px; margin-left: auto; }

/* ── SKILL MANAGER MODAL ────────────────────────────────────────────────── */
.nav-manage        { color: var(--text-dim); }
.nav-manage:hover  { color: var(--brand-orange); }

@keyframes navFlash {
  0%, 100% { background: transparent; }
  30%       { background: rgba(246, 135, 18, 0.2); }
}
.nav-flash { animation: navFlash 1s ease 2; }

.mgr-overlay {
  position:  fixed;
  inset:     0;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index:   9999;
  display:   flex;
  align-items: center;
  justify-content: center;
  padding:   24px;
  animation: overlayIn 0.2s ease;
}

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

.mgr-modal {
  background:   #14141F;
  border:       1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  width:        100%;
  max-width:    640px;
  max-height:   86vh;
  display:      flex;
  flex-direction: column;
  overflow:     hidden;
  box-shadow:   0 24px 80px rgba(0, 0, 0, 0.7);
  animation:    modalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color:        #fff;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mgr-header {
  display:     flex;
  align-items: center;
  justify-content: space-between;
  padding:     20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.mgr-header h2 {
  font-family:  "Poppins", sans-serif;
  font-size:    1.2rem;
  font-weight:  800;
  display:      flex;
  align-items:  center;
  gap:          10px;
  color:        #fff;
}

.mgr-header h2 i { color: var(--brand-orange); }

.mgr-close {
  width:  36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border:    1px solid rgba(255,255,255,0.10);
  color:     rgba(255,255,255,0.6);
  cursor:    pointer;
  display:   grid;
  place-items: center;
  transition: var(--transition);
  font-size: 1rem;
}

.mgr-close:hover {
  background:  var(--red);
  border-color: var(--red);
  color:       #fff;
  transform:   rotate(90deg);
}

.mgr-body {
  overflow-y: auto;
  padding:    24px;
  display:    flex;
  flex-direction: column;
  gap:        0;
}

.mgr-section h3 {
  font-family:  "Poppins", sans-serif;
  font-size:    0.85rem;
  font-weight:  700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color:        rgba(255,255,255,0.5);
  margin-bottom: 14px;
}

.mgr-skill-list {
  list-style:     none;
  display:        flex;
  flex-direction: column;
  gap:            6px;
}

.mgr-skill-item {
  display:     flex;
  align-items: center;
  gap:         10px;
  padding:     10px 14px;
  border-radius: var(--radius-sm);
  background:  rgba(255,255,255,0.04);
  border:      1px solid transparent;
  transition:  var(--transition);
  color:       #fff;
}

.mgr-skill-item:hover   { border-color: rgba(255,255,255,0.10); }
.mgr-skill-item.mgr-hidden { opacity: 0.45; }

.mgr-skill-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.mgr-skill-item > i { color: rgba(255,255,255,0.5); width: 16px; text-align: center; }
.mgr-skill-name { flex: 1; font-weight: 600; font-size: 0.95rem; }

.mgr-tag {
  font-size:    0.75rem;
  padding:      2px 8px;
  border-radius: 99px;
  background:   rgba(239,68,68,0.15);
  color:        var(--red);
  border:       1px solid rgba(239,68,68,0.3);
}

.mgr-btn {
  display:     flex;
  align-items: center;
  gap:         6px;
  padding:     6px 12px;
  border-radius: var(--radius-sm);
  border:      none;
  cursor:      pointer;
  font-size:   0.8rem;
  font-weight: 600;
  transition:  var(--transition);
}

.mgr-delete  { background: rgba(239,68,68,0.10); color: var(--red);   border: 1px solid rgba(239,68,68,0.2); }
.mgr-delete:hover { background: var(--red); color: #fff; border-color: var(--red); }
.mgr-restore { background: rgba(16,185,129,0.10); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
.mgr-restore:hover { background: var(--green); color: #fff; border-color: var(--green); }

.mgr-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 24px 0; }

.mgr-form { display: flex; flex-direction: column; gap: 16px; }
.mgr-row  { display: flex; flex-direction: column; gap: 8px; }
.mgr-row label { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.55); }

.mgr-row input {
  padding:    11px 14px;
  background: rgba(255,255,255,0.05);
  border:     1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-sm);
  color:      #fff;
  font-family: inherit;
  font-size:  0.95rem;
  transition: var(--transition);
  outline:    none;
}

.mgr-row input:focus {
  border-color: var(--brand-orange);
  box-shadow:   0 0 0 3px rgba(246, 135, 18, 0.15);
}

.mgr-row input::placeholder { color: rgba(255,255,255,0.3); }

.mgr-colors { display: flex; flex-wrap: wrap; gap: 8px; }

.mgr-color-btn {
  width:  32px;
  height: 32px;
  border-radius: 50%;
  border:  3px solid transparent;
  cursor:  pointer;
  transition: var(--transition);
}

.mgr-color-btn:hover { transform: scale(1.15); }
.mgr-color-btn.selected { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,0.4); transform: scale(1.1); }

.mgr-icons { display: flex; flex-wrap: wrap; gap: 8px; }

.mgr-icon-btn {
  width:    40px;
  height:   40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border:    1px solid rgba(255,255,255,0.10);
  color:     rgba(255,255,255,0.55);
  cursor:    pointer;
  display:   grid;
  place-items: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.mgr-icon-btn:hover  { background: rgba(255,255,255,0.10); color: #fff; }
.mgr-icon-btn.selected {
  background:   var(--brand-orange);
  border-color: var(--brand-orange);
  color:        #fff;
  box-shadow:   0 4px 12px rgba(246,135,18,0.4);
}

.mgr-add-btn {
  display:     flex;
  align-items: center;
  justify-content: center;
  gap:         8px;
  padding:     14px;
  background:  var(--brand-orange);
  color:       #fff;
  border:      none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size:   1rem;
  cursor:      pointer;
  transition:  var(--transition);
  box-shadow:  0 4px 16px rgba(246,135,18,0.35);
}

.mgr-add-btn:hover  { background: #e07810; transform: translateY(-2px); }
.mgr-add-btn:active { transform: translateY(0); }

/* ── CONTENT PADDING ────────────────────────────────────────────────────── */
.main > section,
.main > footer.app-footer {
  padding-left:  80px;
  padding-right: 80px;
}

.main > div:not(.skill-hero):not(.hero-section) {
  padding-left:  80px;
  padding-right: 80px;
}

.main > footer.app-footer {
  padding-top:    48px;
  padding-bottom: 48px;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .page-section { padding: 48px 56px; }
  .page-section-narrow { padding: 36px 56px; }
  .skill-hero-content { padding: 32px 56px; }
  .main > section, .main > footer.app-footer,
  .main > div:not(.skill-hero):not(.hero-section) { padding-left: 56px; padding-right: 56px; }
}

@media (max-width: 1024px) {
  .skills-grid   { grid-template-columns: repeat(3, 1fr); }
  .content-row   { grid-template-columns: 1fr; }
  .page-section  { padding: 40px 40px; }
  .page-section-narrow { padding: 28px 40px; }
  .skill-hero-content  { padding: 28px 40px; }
  .hero-content  { left: 6%; }
  .grid.two      { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-center    { display: none; }
  .nav-hamburger { display: grid; }
  .nav-brand-name { display: none; }

  .skills-grid  { grid-template-columns: repeat(2, 1fr); }
  .page-section { padding: 32px 24px; }
  .page-section-narrow { padding: 24px 24px; }
  .skill-hero-content  { padding: 24px 24px; }
  .hero-content { left: 5%; right: 5%; max-width: none; }
  .bottom-cards { grid-template-columns: 1fr; }
  .app-footer   { grid-template-columns: 1fr; }
  .mgr-modal    { max-height: 94vh; }
  .main > section, .main > footer.app-footer,
  .main > div:not(.skill-hero):not(.hero-section) { padding-left: 24px; padding-right: 24px; }
  .overlay-ctrl { bottom: 16px; right: 16px; }
}

@media (max-width: 600px) {
  .nav-logo-block { padding: 0 16px; gap: 8px; }
  .skills-grid    { grid-template-columns: 1fr; }
  .hero-section   { height: 80vh; }
  .hero-content h1 { font-size: 2rem; }
  .hero-actions   { flex-direction: column; align-items: flex-start; }
  .carousel       { height: 280px; }
  .skill-hero     { height: 45vh; min-height: 280px; }
}
