*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Default scale: site appears at 90% (like browser zoom 90%) */
html {
  zoom: 0.9;
}

@supports not (zoom: 1) {
  html {
    transform: scale(0.9);
    transform-origin: 0 0;
    width: 111.11vw;
    min-width: 111.11vw;
    min-height: 111.11vh;
    overflow-x: hidden;
  }
}

:root {
  --side-w: 280px;
  --bg-sidebar: #1a1a1a;
  --bg-main: #0d0d0d;
  --text: #e5e5e5;
  --text-muted: #888;
  --border: #2a2a2a;
  --hover-bg: #252525;
  --active-bg: #2d2d2d;
}

[data-theme="light"] {
  --bg-sidebar: #f5f5f5;
  --bg-main: #fafafa;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #e0e0e0;
  --hover-bg: #ebebeb;
  --active-bg: #e0e0e0;
}

[data-theme="auto"] {
  --bg-sidebar: #1a1a1a;
  --bg-main: #0d0d0d;
  --text: #e5e5e5;
  --text-muted: #888;
  --border: #2a2a2a;
  --hover-bg: #252525;
  --active-bg: #2d2d2d;
}

@media (prefers-color-scheme: light) {
  [data-theme="auto"] {
    --bg-sidebar: #f5f5f5;
    --bg-main: #fafafa;
    --text: #1a1a1a;
    --text-muted: #666;
    --border: #e0e0e0;
    --hover-bg: #ebebeb;
    --active-bg: #e0e0e0;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text);
  overflow-x: hidden;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--side-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  overflow-y: auto;
  overflow-x: visible;
  transition: transform 0.25s ease;
  will-change: transform;
}

/* ── Sidebar collapsed (body class toggled by JS) ── */
body.sidebar-hidden .sidebar {
  transform: translateX(calc(-1 * var(--side-w)));
}
body.sidebar-hidden .content {
  margin-left: 0 !important;
}

/* ── Sidebar resize drag handle ── */
.sidebar-resize {
  position: absolute;
  top: 0;
  right: -3px;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
  z-index: 10;
  border-radius: 3px;
  transition: background 0.15s;
}
.sidebar-resize:hover,
.sidebar-resize.is-dragging {
  background: rgba(99, 102, 241, 0.35);
}

/* ── Sidebar peek / toggle button (desktop) ── */
.sidebar-peek {
  position: fixed;
  top: 50%;
  left: var(--side-w);
  transform: translateY(-50%);
  z-index: 201;
  width: 16px;
  height: 48px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  color: var(--text-muted);
  transition: left 0.25s ease, background 0.15s, color 0.15s;
}
.sidebar-peek:hover {
  background: var(--hover-bg);
  color: var(--text);
}
.sidebar-peek svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
body.sidebar-hidden .sidebar-peek {
  left: 0;
}
body.sidebar-hidden .sidebar-peek svg {
  transform: rotate(180deg);
}

/* Smooth content margin transition */
.content {
  transition: margin-left 0.25s ease;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0 1.25rem 1rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.sidebar-pfp {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sidebar-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-top: 0.25rem;
}

/* Wrapper for brand + nav (mobile: scrollable row) */
.sidebar-top {
  display: contents;
}

/* Wrapper for Instagram + theme (mobile: second scrollable row) */
.sidebar-bottom {
  display: contents;
}

/* Hidden on desktop; JS + mobile CSS makes it visible */
.sidebar-bottom-toggle {
  display: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0 0.75rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.sidebar-link:hover {
  color: var(--text);
  background: var(--hover-bg);
}

.sidebar-link--active {
  color: var(--text);
  background: var(--active-bg);
}

.sidebar-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.sidebar-icon--instagram {
  width: 1.25rem;
  height: 1.25rem;
}

.sidebar-num {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.sidebar-ext {
  width: 0.875rem;
  height: 0.875rem;
  margin-left: auto;
  opacity: 0.7;
}

.sidebar-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem 0;
  margin: 0.25rem 0 0;
  line-height: 1.4;
}

.sidebar-section {
  padding: 0 0.75rem 1rem;
  margin-top: auto;
}

.sidebar-section-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  padding: 0 0.75rem;
}

.sidebar-followers {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem 0;
  margin-top: 0.25rem;
}

/* Theme switcher */
.theme-switcher {
  display: flex;
  padding: 0 1rem;
  margin-top: 1rem;
  gap: 0;
  background: var(--hover-bg);
  border-radius: 8px;
  margin-left: 0.75rem;
  margin-right: 0.75rem;
  overflow: hidden;
}

.theme-btn {
  flex: 1;
  padding: 0.5rem 0.5rem;
  font-size: 0.8rem;
  font-family: inherit;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.theme-btn:hover {
  color: var(--text);
}

.theme-btn--active {
  background: var(--active-bg);
  color: var(--text);
}

/* Main content */
.content {
  margin-left: var(--side-w);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.content--home {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  gap: 2rem;
}

.greeting {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--text);
  min-height: 1.2em;
  text-align: center;
}

/* ===== HOME BANNER (SMILE image) ===== */
.home-banner-wrap {
  position: relative;
  width: 100%;
  max-width: 700px;
}

.home-banner {
  width: 100%;
  border-radius: 14px;
  display: block;
  object-fit: cover;
}

.home-hadith {
  position: absolute;
  top: 0.6rem;
  right: 0.875rem;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
  font-style: italic;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 600px) {
  .home-banner-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  .home-hadith {
    position: static;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    text-align: right;
    padding-right: 0.25rem;
  }
}

/* ===== HOME NAV CARDS ===== */
.home-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 700px;
}

.home-nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem 1.25rem;
  background: var(--hover-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.18s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.home-nav-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 70%);
}

.home-nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.home-nav-card:hover::before { opacity: 1; }

.home-nav-card--about:hover   { border-color: rgba(100,149,237,0.5); }
.home-nav-card--islam:hover   { border-color: rgba(201,168,76,0.5);  }
.home-nav-card--cyber:hover   { border-color: rgba(0,200,83,0.5);    }
.home-nav-card--entrep:hover  { border-color: rgba(201,168,76,0.5);  }
.home-nav-card--travel:hover  { border-color: rgba(100,190,255,0.5); }

.home-nav-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: var(--active-bg);
  border: 1px solid var(--border);
}

.home-nav-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.home-nav-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.home-nav-card-arrow {
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.85rem;
  align-self: flex-end;
  opacity: 0.6;
  transition: opacity 0.15s, transform 0.15s;
}

.home-nav-card:hover .home-nav-card-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ===== TRAVEL PAGE HERO ===== */
.travel-hero {
  flex-shrink: 0;
  padding: 1.75rem 2.5rem;
  background: linear-gradient(160deg, #06101e 0%, #0b1828 50%, #06101e 100%);
  border-bottom: 1px solid rgba(100, 170, 255, 0.12);
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.travel-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(100, 170, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.travel-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 170, 255, 0.4), transparent);
}

.travel-hero-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.3rem;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(100, 170, 255, 0.25);
}

.travel-hero-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
  position: relative;
  z-index: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ===== SIDEBAR ANALYTICS ===== */
.sidebar-analytics {
  padding: 0.625rem 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-stat-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.73rem;
  color: var(--text-muted);
  padding: 0 0.25rem;
}

.sidebar-stat-row strong {
  color: var(--text);
  font-weight: 600;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.7);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px rgba(34,197,94,0.7); }
  50%       { box-shadow: 0 0 12px rgba(34,197,94,0.9); }
}

.follow-message {
  display: none;
}

.follow-link .icon-instagram {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.follow-link:hover {
  opacity: 0.85;
}

/* Page title (About, Education, Sports, Projects) */
.page-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 600;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Projects page: sections and cards */
.content--projects,
.content--sports,
.content--education {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 2rem 3rem;
}

.content--projects .page-title,
.content--sports .page-title,
.content--education .page-title {
  margin-bottom: 2rem;
}

.project-section {
  margin-bottom: 2.5rem;
}

/* So section headings aren’t hidden under fixed header when scrolling */
.page-title,
.project-section,
.project-section-title {
  scroll-margin-top: 7.5rem;
}

.project-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
  padding-inline-end: 0.25rem;
}

.project-list li {
  margin: 0;
  flex: 0 0 auto;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
}

.project-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 220px;
  background: var(--hover-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.project-card:hover {
  border-color: var(--text-muted);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.project-card-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--active-bg);
  overflow: hidden;
}

.project-card-placeholder {
  position: absolute;
  inset: 0;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-tag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--bg-main);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.project-card-body {
  padding: 0.75rem 0.875rem 1rem;
}

.project-card-body .project-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.project-card-sub {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.project-card-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0;
}

/* Projects page: grid layout, cards min 320px and grow to fill */
.content--projects .project-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  overflow-x: visible;
}

.content--projects .project-list li {
  width: auto;
  min-width: 0;
  max-width: none;
}

.content--projects .project-card {
  width: 100%;
  max-width: none;
  border-radius: 12px;
}

.content--projects .project-card-thumb {
  aspect-ratio: 18 / 10;
}

.content--projects .project-card-tag {
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
}

.content--projects .project-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.content--projects .project-card-body .project-name {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.content--projects .project-card-sub {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.content--projects .project-card-desc {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Mobile: full-width layout, no zoom, safe areas */
@media (max-width: 768px) {
  html {
    zoom: 1;
  }

  @supports not (zoom: 1) {
    html {
      transform: none;
      width: auto;
      min-width: 0;
      min-height: 0;
      overflow-x: visible;
    }
  }

  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Mobile: sidebar = two rows at top (nav, then Instagram + theme) */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    min-height: auto;
    height: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    overflow: visible;
  }

  /* Row 1: brand + nav, one line, scrollable */
  .sidebar-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    min-width: 0;
    gap: 0.5rem;
    padding: 0.5rem max(0.75rem, env(safe-area-inset-right)) 0.5rem max(0.75rem, env(safe-area-inset-left));
    padding-top: max(0.5rem, env(safe-area-inset-top));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-top .sidebar-brand {
    flex-shrink: 0;
  }

  .sidebar-top .sidebar-nav {
    flex-shrink: 0;
  }

  /* Row 2: Instagram link + follower count + Light/Dark/Auto, one line, scrollable if needed */
  .sidebar-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.375rem max(0.75rem, env(safe-area-inset-right)) 0.5rem max(0.75rem, env(safe-area-inset-left));
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--border);
    background: var(--bg-sidebar);
  }

  .sidebar-bottom .sidebar-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    border: none;
  }

  .sidebar-bottom .sidebar-section-title,
  .sidebar-bottom .sidebar-tagline {
    display: none;
  }

  .sidebar-bottom .sidebar-link {
    padding: 0.4rem 0.5rem;
    min-height: 36px;
    font-size: 0.85rem;
  }

  .sidebar-bottom .sidebar-followers {
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
  }

  .sidebar-bottom .theme-switcher {
    display: flex;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    gap: 0;
    background: var(--hover-bg);
    border-radius: 8px;
    overflow: hidden;
  }

  .sidebar-bottom .theme-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-height: 36px;
  }

  .sidebar-brand {
    flex-direction: row;
    align-items: center;
    padding: 0;
    border: none;
    margin: 0;
    margin-right: 0.5rem;
    gap: 0.5rem;
  }

  .sidebar-pfp {
    width: 36px;
    height: 36px;
  }

  .sidebar-title {
    font-size: 1.1rem;
    white-space: nowrap;
  }

  .sidebar-line {
    display: none;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0;
    margin-left: auto;
    gap: 0.25rem;
  }

  .sidebar-link {
    min-height: 44px;
    padding: 0.5rem 0.6rem;
    font-size: 0.9rem;
  }

  .sidebar-nav .sidebar-icon {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
    flex-shrink: 0;
  }

  /* Desktop-only elements hidden on mobile */
  .sidebar-resize { display: none !important; }
  .sidebar-peek   { display: none !important; }

  /* Sidebar-bottom toggle button (mobile only) */
  .sidebar-bottom-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    margin-left: 0.25rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: background 0.15s, color 0.15s;
  }

  .sidebar-bottom-toggle:hover {
    background: var(--hover-bg);
    color: var(--text);
  }

  .sidebar-bottom-toggle svg {
    transition: transform 0.25s ease;
  }

  /* Rotate chevron when bottom bar is hidden */
  .sidebar-bottom-toggle[aria-expanded="false"] svg {
    transform: rotate(180deg);
  }

  /* Sidebar-bottom collapse transition — keep x-scroll when expanded */
  .sidebar-bottom {
    overflow-x: auto;
    overflow-y: hidden;
    max-height: 80px;
    transition: max-height 0.28s ease, opacity 0.28s ease, padding 0.28s ease;
  }

  .sidebar-bottom--hidden {
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top-width: 0 !important;
  }

  .content {
    margin-left: 0;
    margin-top: 7rem;
    min-height: calc(100vh - 7rem);
    min-height: calc(100dvh - 7rem);
    padding: 1.25rem 1rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .content--home {
    gap: 0.75rem;
  }

  .greeting {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
    text-align: center;
  }

  .follow-message {
    font-size: 1.1rem;
    text-align: center;
  }

  .content--projects,
  .content--sports,
  .content--education {
    padding: 1.25rem 1rem;
    padding-bottom: max(3rem, env(safe-area-inset-bottom) + 2rem);
  }

  .content--projects .page-title,
  .content--sports .page-title,
  .content--education .page-title {
    margin-bottom: 1.5rem;
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .project-section {
    margin-bottom: 1.5rem;
  }

  .project-section-title {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  /* Cyber page mobile padding */
  .content--cyber {
    padding: 1.25rem 1rem;
  }

  /* Hacking adventures box: left-align text on small screens */
  .cyber-coming-soon {
    text-align: left;
    padding: 1.25rem;
  }

  .project-list {
    gap: 1rem;
  }

  .project-list li {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
  }

  .project-card {
    max-width: 200px;
    transform: none;
  }

  .project-card:active {
    opacity: 0.95;
  }

  .project-card-body {
    padding: 0.6rem 0.75rem 0.875rem;
  }

  .project-card-body .project-name {
    font-size: 0.95rem;
  }

  .project-card-sub,
  .project-card-desc {
    font-size: 0.75rem;
  }

  .project-card-tag {
    font-size: 0.6rem;
    padding: 0.15rem 0.35rem;
  }

  /* Projects page: single column on mobile */
  .content--projects .project-list {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
}

@media (max-width: 480px) {
  .sidebar-num {
    display: none;
  }

  .sidebar-section-title {
    display: none;
  }

  .sidebar-link span:not(.sidebar-num) {
    display: none;
  }

  .sidebar-link {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
    justify-content: center;
  }
}

/* ===== ABOUT PAGE TABS ===== */
.content--about {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 2rem 3rem;
  gap: 0;
}

.content--about .about-bio-hero,
.content--about .about-tab-bar,
.content--about .about-panel {
  width: 100%;
  max-width: 960px;
}

.content--about .about-bio-hero {
  margin-bottom: 1rem;
}

.about-welcome {
  width: 100%;
  max-width: 960px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  text-align: center;
}

.about-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.about-tab {
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}

.about-tab:hover { color: var(--text); }

.about-tab--active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.about-panel[hidden] { display: none !important; }

/* Bio tab */
.bio-card {
  background: var(--hover-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  max-width: 640px;
}

.bio-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.bio-tagline {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 1.25rem;
}

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

.bio-tag {
  padding: 0.3rem 0.75rem;
  background: var(--active-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== SPORT TABS ===== */
.sport-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.sport-tab {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  background: var(--hover-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.sport-tab:hover { color: var(--text); background: var(--active-bg); }

.sport-tab--active {
  color: var(--text);
  background: var(--active-bg);
  border-color: var(--text-muted);
}

.sport-panel[hidden] { display: none !important; }

.sport-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1.25rem;
}

/* ===== VIDEO CARDS ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--hover-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.video-card:hover {
  border-color: var(--text-muted);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-3px);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--active-bg);
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.video-card:hover .video-thumb img { transform: scale(1.04); }

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s;
}

.video-card:hover .video-play-overlay { opacity: 1; }

.video-play-btn {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.video-play-btn svg {
  width: 20px;
  height: 20px;
  fill: #111;
  margin-left: 3px;
}

.video-info {
  padding: 0.875rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.video-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: var(--text);
}

.video-ext-icon {
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0.5;
  flex-shrink: 0;
  margin-left: auto;
}

/* ===== ISLAM PAGE — redesigned: midnight navy + gold ===== */
.content--islam {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 2rem 3rem;
}

.islam-hero {
  text-align: center;
  padding: 3.5rem 2rem 3rem;
  background: linear-gradient(170deg, #04081a 0%, #0b1735 40%, #0e1f42 60%, #04081a 100%);
  border-radius: 20px;
  border: 1px solid rgba(201, 168, 76, 0.22);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(201, 168, 76, 0.06) inset;
}

/* Radial glow */
.islam-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Bottom gold divider line */
.islam-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.45), transparent);
}

.islam-crescent {
  font-size: 3.75rem;
  display: block;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 24px rgba(201, 168, 76, 0.65));
  line-height: 1;
}

.islam-bismillah {
  font-size: 2rem;
  color: #C9A84C;
  display: block;
  margin-bottom: 0.875rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
  font-family: 'Scheherazade New', 'Arabic Typesetting', Georgia, serif;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.45);
  letter-spacing: 0.02em;
}

.islam-page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.4rem;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

.islam-hero-sub {
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Progress bar */
.islam-progress-wrap {
  margin-bottom: 1.5rem;
  background: var(--hover-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.islam-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.625rem;
}

.islam-progress-label-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.islam-progress-label-text strong {
  color: var(--text);
}

.islam-progress-pct {
  font-size: 1.1rem;
  font-weight: 700;
  color: #C9A84C;
  font-variant-numeric: tabular-nums;
}

.islam-progress-bar {
  height: 7px;
  background: var(--active-bg);
  border-radius: 999px;
  overflow: hidden;
}

.islam-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7A5C1E, #C9A84C 60%, #E0C87A);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(.4,0,.2,1);
  min-width: 4px;
}

/* Stats */
.islam-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.islam-stat {
  background: var(--hover-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 0.875rem;
  text-align: center;
}

.islam-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.3rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.islam-stat-num--completed { color: #34D399; }
.islam-stat-num--learning { color: #FBBF24; }

.islam-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

/* Filters */
.islam-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.islam-filter {
  padding: 0.45rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  background: var(--hover-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.islam-filter:hover { color: var(--text); border-color: var(--text-muted); }

.islam-filter--active {
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.5);
  color: #C9A84C;
  font-weight: 600;
}

/* Surah grid */
.surah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 0.875rem;
}

.surah-card {
  background: var(--hover-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  flex-direction: column;
  cursor: default;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.2s;
}

.surah-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.surah-card--completed {
  border-color: rgba(52, 211, 153, 0.28);
}

.surah-card--completed:hover {
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 10px 28px rgba(52, 211, 153, 0.07);
}

.surah-card--learning {
  border-color: rgba(251, 191, 36, 0.2);
}

.surah-card--learning:hover {
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 10px 28px rgba(251, 191, 36, 0.06);
}

.surah-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}

.surah-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--active-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.15rem 0.45rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.surah-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.surah-badge--completed {
  background: rgba(52, 211, 153, 0.1);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.22);
}

.surah-badge--learning {
  background: rgba(251, 191, 36, 0.1);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.22);
}

.surah-arabic {
  font-size: 1.85rem;
  font-family: 'Scheherazade New', 'Arabic Typesetting', 'Traditional Arabic', Georgia, serif;
  color: #C9A84C;
  line-height: 1.5;
  direction: rtl;
  text-align: center;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0;
}

.surah-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.surah-meaning {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.surah-verses {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* ===== BIO ACTION BUTTONS ===== */
.bio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.bio-action-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--active-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1;
}

.bio-action-btn:hover {
  background: var(--hover-bg);
  border-color: var(--text-muted);
}

.bio-action-btn--yt {
  background: rgba(255, 48, 48, 0.08);
  border-color: rgba(255, 48, 48, 0.25);
  color: #ff4f4f;
}

.bio-action-btn--yt:hover {
  background: rgba(255, 48, 48, 0.14);
  border-color: rgba(255, 48, 48, 0.45);
}

/* ===== CYBERSECURITY PAGE ===== */
.content--cyber {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 2rem 3rem;
}

.content--cyber .page-title { margin-bottom: 2rem; }

.cyber-hero {
  background: linear-gradient(135deg, #050e05 0%, #0a1a0a 40%, #0d2010 100%);
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  font-family: 'Courier New', 'Courier', monospace;
  position: relative;
  overflow: hidden;
}

.cyber-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 65, 0.015) 2px,
    rgba(0, 255, 65, 0.015) 4px
  );
  pointer-events: none;
}

.cyber-prompt {
  font-size: 0.85rem;
  color: rgba(0, 255, 65, 0.5);
  display: block;
  margin-bottom: 0.35rem;
  position: relative;
}

.cyber-title-line {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: #00FF41;
  display: block;
  margin-bottom: 0.5rem;
  position: relative;
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

.cyber-sub {
  font-size: 0.85rem;
  color: rgba(0, 255, 65, 0.6);
  position: relative;
}

.cyber-blink {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background: #00FF41;
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cyber-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.cyber-skill-chip {
  background: var(--hover-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.875rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cyber-skill-chip::before {
  content: '›';
  color: #00c853;
  font-weight: 700;
}

.cyber-coming-soon {
  background: var(--hover-bg);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-top: 1rem;
}

.cyber-coming-soon-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.cyber-coming-soon-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ===== HACKING ADVENTURES NAV CARD ===== */
.hack-nav-grid {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}
.cyber-coming-soon .hack-nav-grid {
  margin-top: 1.25rem;
}

/* Scroll hint wrapper — always in DOM, only visible on mobile */
.hack-nav-scroll-wrap {
  position: relative;
}

.hack-nav-scroll-hint {
  display: none; /* hidden on desktop */
}

@media (max-width: 700px) {
  .hack-nav-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  .hack-nav-card {
    flex-shrink: 0;
    min-width: 170px;
  }

  /* Right-edge fade + chevron arrow */
  .hack-nav-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0.5rem; /* match padding-bottom of grid */
    width: 2.5rem;
    background: linear-gradient(to right, transparent, rgba(13,13,13,0.85) 60%);
    color: #00FF41;
    pointer-events: none;
    transition: opacity 0.25s;
    border-radius: 0 12px 12px 0;
  }

  .hack-nav-scroll-hint.hidden {
    opacity: 0;
  }
}

.hack-nav-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem;
  background: var(--hover-bg);
  border: 1px solid rgba(0, 255, 65, 0.25);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  min-width: 200px;
}

.hack-nav-card:hover {
  border-color: rgba(0, 255, 65, 0.6);
  background: rgba(0, 255, 65, 0.05);
  transform: translateY(-2px);
}

.hack-nav-icon {
  color: #00FF41;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 0 6px rgba(0, 255, 65, 0.4));
}

.hack-nav-label {
  font-size: 1rem;
  font-weight: 700;
  color: #00FF41;
  font-family: 'Courier New', monospace;
}

.hack-nav-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== HACK NAV CARDS — LIGHT MODE ===== */
[data-theme="light"] .hack-nav-card {
  background: #f4f9f5;
  border-color: rgba(0, 140, 50, 0.35);
  color: #1a1a1a;
}
[data-theme="light"] .hack-nav-card:hover {
  border-color: rgba(0, 140, 50, 0.7);
  background: rgba(0, 140, 50, 0.08);
}
[data-theme="light"] .hack-nav-label {
  color: #0d6e2a;
}
[data-theme="light"] .hack-nav-icon {
  color: #0d6e2a;
  filter: none;
}
[data-theme="light"] .hack-nav-sub {
  color: #444;
}
[data-theme="light"] .content--cyber .cyber-coming-soon {
  background: #f2f8f4;
  border-color: rgba(0, 140, 50, 0.3);
}
[data-theme="light"] .content--cyber .cyber-coming-soon-title {
  color: #0d6e2a;
}
[data-theme="light"] .content--cyber .cyber-coming-soon-desc {
  color: #333;
}

/* ===== SURAH NOT-STARTED STATE ===== */
.surah-card--notstarted {
  opacity: 0.38;
  border-color: var(--border);
  background: var(--hover-bg);
}

.surah-card--notstarted:hover {
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.surah-card--notstarted .surah-arabic {
  color: var(--text-muted);
}

.surah-card--notstarted .surah-name {
  color: var(--text-muted);
}

/* ===== ABOUT BIO HERO ===== */
.about-bio-hero {
  text-align: center;
  padding: 2.75rem 2rem 2.5rem;
  background: linear-gradient(160deg, #07101f 0%, #0d1d35 45%, #07101f 100%);
  border-radius: 18px;
  border: 1px solid rgba(99, 155, 255, 0.16);
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}

.about-bio-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(99, 155, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.about-bio-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 155, 255, 0.4), transparent);
}

.about-bio-hero-name {
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(99, 155, 255, 0.3);
}

.about-bio-hero-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  display: block;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* ===== YOUTUBE TAB PANEL ===== */
.yt-channel-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--hover-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
}

.yt-channel-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(255, 0, 0, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 0, 0, 0.2);
}

.yt-channel-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.yt-channel-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.yt-channel-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.yt-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding: 0.45rem 1rem;
  background: #FF0000;
  color: #fff;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: opacity 0.15s, transform 0.15s;
}

.yt-visit-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.yt-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

/* ===== ENTREPRENEURSHIP HERO ===== */
.entrepre-hero {
  text-align: center;
  padding: 2.75rem 2rem 2.5rem;
  background: linear-gradient(160deg, #0d0b00 0%, #1c1500 45%, #0d0b00 100%);
  border-radius: 18px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.entrepre-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 280px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.entrepre-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.45), transparent);
}

.entrepre-hero-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.875rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.6));
  line-height: 1;
}

.entrepre-hero-title {
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.4rem;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.25);
}

.entrepre-hero-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  position: relative;
  z-index: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ===== CYBERSECURITY PAGE — enhanced terminal feel ===== */
.content--cyber {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 255, 65, 0.008) 3px,
    rgba(0, 255, 65, 0.008) 4px
  );
}

.content--cyber .project-section-title {
  font-family: 'Courier New', 'Courier', monospace;
  color: #00c853;
  letter-spacing: 0.06em;
}

.content--cyber .project-section-title::before {
  content: '// ';
  opacity: 0.55;
}

.content--cyber .project-card {
  border-color: rgba(0, 200, 83, 0.15);
}

.content--cyber .project-card:hover {
  border-color: rgba(0, 200, 83, 0.4);
  box-shadow: 0 8px 24px rgba(0, 200, 83, 0.07);
}

.content--cyber .cyber-coming-soon {
  border-color: rgba(0, 200, 83, 0.25);
  border-style: dashed;
}

.content--cyber .cyber-coming-soon-title {
  color: #00FF41;
  font-family: 'Courier New', monospace;
}

.content--cyber .cyber-coming-soon-title::before {
  content: '> ';
  opacity: 0.6;
}

.cyber-skill-chip {
  font-family: 'Courier New', 'Courier', monospace;
  border-color: rgba(0, 200, 83, 0.15);
  transition: border-color 0.15s, color 0.15s;
}

.cyber-skill-chip:hover {
  border-color: rgba(0, 200, 83, 0.4);
  color: var(--text);
}

/* ===== TRAVEL PAGE ===== */
.content--travel {
  padding: 0;
  height: 100vh;
  overflow: hidden;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.travel-map-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

#map {
  position: absolute;
  inset: 0;
}

.country-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 310px;
  background: #1a1a1a;
  border-left: 1px solid rgba(255,255,255,0.1);
  z-index: 1000;
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.country-panel.open {
  transform: translateX(0);
}

.panel-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: system-ui;
  flex-shrink: 0;
}

.panel-close:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.panel-country-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  padding-right: 2.5rem;
  line-height: 1.2;
}

.panel-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0.5rem 0;
}

.panel-memories {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
  font-style: italic;
}

/* Travel visited country count badge */
.travel-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.5rem 0.875rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 500;
  pointer-events: none;
}

@media (max-width: 768px) {
  .content--travel {
    height: calc(100vh - 7rem);
    margin-top: 0;
  }

  .country-panel {
    width: min(85vw, 300px);
  }
}

/* Mobile responsive for new sections */
@media (max-width: 768px) {
  .content--about,
  .content--islam {
    padding: 1.25rem 1rem;
    padding-bottom: max(3rem, env(safe-area-inset-bottom) + 2rem);
  }

  .islam-hero {
    padding: 2rem 1.25rem;
    margin-bottom: 1.25rem;
  }

  .islam-stats {
    gap: 0.75rem;
  }

  .islam-stat {
    padding: 1rem 0.75rem;
  }

  .islam-stat-num {
    font-size: 1.75rem;
  }

  .surah-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
  }

  .about-tab-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sport-tab-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }
}

/* ============================================================
   ARSENAL — custom cursor
   ============================================================ */
.page-cyber { cursor: none !important; }
.page-cyber * { cursor: none !important; }

/* Terminal icon cursor — tracks mouse, shrinks on click */
.cyber-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.15s;
}

.cyber-cursor.visible { opacity: 1; }

.cyber-cursor-icon {
  position: absolute;
  width: 38px;
  height: 38px;
  margin-left: -19px;
  margin-top: -19px;
  border-radius: 50%;
  filter: drop-shadow(0 0 5px rgba(0, 255, 65, 0.55));
  transition: transform 0.08s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.08s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.cyber-cursor.is-clicking .cyber-cursor-icon {
  transform: scale(0.65);
  filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.9));
}

/* ============================================================
   ARSENAL — mobile/tablet chip grid
   ============================================================ */
.arsenal-grid {
  background: rgba(0,255,65,0.025);
  border: 1px solid rgba(0,255,65,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.arsenal-cat-title {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: #00c853;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.arsenal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.arsenal-chip {
  font-family: 'Courier New', monospace;
  font-size: 0.76rem;
  color: rgba(190,230,190,0.75);
  background: rgba(0,255,65,0.035);
  border: 1px solid rgba(0,255,65,0.13);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}

.arsenal-chip:hover {
  border-color: rgba(0,200,83,0.5);
  color: #fff;
}

/* ============================================================
   ARSENAL — desktop D3 force graph
   ============================================================ */
.arsenal-graph-wrap {
  position: relative;
  background: #020b02;
  border: 1px solid rgba(0,255,65,0.1);
  border-radius: 12px;
  overflow: hidden;
}

#arsenal-svg {
  width: 100%;
  display: block;
}

.arsenal-graph-hint {
  position: absolute;
  bottom: 1.1rem;
  left: 1.1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  color: #00FF41;
  background: rgba(0,255,65,0.1);
  border: 1px solid rgba(0,255,65,0.3);
  padding: 0.28rem 0.6rem;
  border-radius: 4px;
  pointer-events: none;
  z-index: 5;
}

/* ============================================================
   ARSENAL — scrolling ticker
   ============================================================ */
.arsenal-ticker-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(0,255,65,0.08);
  padding: 0.65rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.75rem;
}

.arsenal-ticker-row {
  display: flex;
  white-space: nowrap;
  flex-shrink: 0;
}

.arsenal-ticker-row--fwd  { animation: aticker-left  36s linear infinite; }
.arsenal-ticker-row--rev  { animation: aticker-right 48s linear infinite; }

.arsenal-ticker-item {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  padding: 0.2rem 1.25rem;
  flex-shrink: 0;
}

.arsenal-ticker-item::before {
  content: '·';
  color: #00c853;
  margin-right: 1rem;
}

@keyframes aticker-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes aticker-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ============================================================
   ARSENAL — responsive visibility
   ============================================================ */
@media (max-width: 1100px) {
  .arsenal-graph-wrap { display: none; }
  .arsenal-grid       { display: flex; }
}

@media (min-width: 1101px) {
  .arsenal-graph-wrap { display: block; }
  .arsenal-grid       { display: none; }
}
