/*
 * home.css - homepage-only stylesheet
 * overrides the Win98 theme for the main page. every other page continues
 * loading style.css + navbar.css unchanged. loaded LAST to win specificity.
 *
 * design direction: early-to-late 2000s web portal aesthetic.
 * think Valve circa 2005, Miniclip, old Yahoo, GameFAQs, Newgrounds -
 * dark chrome, light content wells, structured sections, Verdana everywhere,
 * personality baked in. not a framework. not a template. a damn website.
 *
 * layout: two-column - LEFT sidebar + main content. the timeless formula.
 * visual rhythm through alternating section headers (dark vs accent) and
 * tinted backgrounds. multi-column inner rows for visual variety.
 * era-appropriate gradients on all chrome surfaces.
 */

/* ============================== CUSTOM PROPERTIES ========================= */

.page-home {
  --home-bg-body:      #2c3040;
  --home-bg-header:    #1b2838;
  --home-bg-nav:       #2a475e;
  --home-bg-content:   #f5f3ef;
  --home-bg-card:      #ffffff;
  --home-accent:       #cf6a1c;
  --home-accent-hover: #e8934f;
  --home-link:         #67c1f5;
  --home-link-dark:    #1a5276;
  --home-text-light:   #c6d4df;
  --home-text-dark:    #1a1a1a;
  --home-text-muted:   #6b7d8e;
  --home-border-dark:  #3d4450;
  --home-border-light: #b8b6b4;
  --home-section-head: #2a475e;

  --home-font-heading: Tahoma, Verdana, Geneva, sans-serif;
  --home-font-body:    Georgia, 'Times New Roman', Times, serif;
  --home-font-ui:      Verdana, Tahoma, Geneva, sans-serif;
}


/* ============================== GLOBAL OVERRIDES ========================== */

.page-home {
  margin: 0;
  background-color: #0a1018;
  background-image:
    radial-gradient(circle, #1e2c3a 1.5px, transparent 1.5px),
    radial-gradient(ellipse at 50% 20%, rgba(35,60,90,0.30) 0%, transparent 65%),
    linear-gradient(to bottom, #182636 0%, #111c28 40%, #0a1018 100%);
  background-repeat: repeat, no-repeat, no-repeat;
  background-attachment: scroll, fixed, fixed;
  background-position: 0 0, center, 0 0;
  background-size: 8px 8px, 100% 100%, 100% 100%;
  font-family: var(--home-font-body);
  color: var(--home-text-dark);
}

/* thin accent stripe across the very top of the page. pure decoration.
   every 2000s portal worth its salt had one of these */
.page-home::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--home-accent);
}

html:has(.page-home) {
  box-shadow: none;
  background: #0a1018;
}

.page-home h1,
.page-home h2,
.page-home h3,
.page-home h4,
.page-home h5 {
  font-family: var(--home-font-heading);
}

.page-home p {
  font-family: var(--home-font-body);
}

.page-home hr {
  border: none;
  border-top: 1px solid var(--home-border-light);
  background: transparent;
  height: 0;
  box-shadow: none;
  width: 100%;
}

.page-home ::selection {
  background: var(--home-accent);
  color: #ffffff;
}


/* ============================== SITE HEADER =============================== */

.site-header {
  background: linear-gradient(to bottom, #243b50 0%, var(--home-bg-header) 100%);
  border-bottom: 2px solid var(--home-accent);
  padding: 0;
}

.site-header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--home-text-light);
}

.site-brand:hover .site-title {
  color: var(--home-accent-hover);
}

.site-title {
  font-family: var(--home-font-heading);
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ffffff;
}

.site-tagline {
  font-family: var(--home-font-ui);
  font-size: 0.8rem;
  color: var(--home-text-muted);
  letter-spacing: 0.5px;
}


/* ============================== NAVBAR OVERRIDES ========================== */
/* same HTML structure as other pages so newshoes.js keeps working.
   we just repaint it from Win98 titlebar to 2000s dark nav bar         === */

.page-home .navbar {
  background: linear-gradient(to bottom, #3a5f7e 0%, var(--home-bg-nav) 60%, #243b50 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transform: none;
}

.page-home .navbar-bg {
  background: transparent;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0;
  letter-spacing: 0;
}

/* hide the logo from the navbar - it lives in .site-header now */
.page-home .navbar .home {
  display: none !important;
}

.page-home .navbar .padding {
  display: none;
}

.page-home .navbar-nav {
  gap: 0;
}

.page-home .nav-item {
  padding: 0;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.page-home .nav-item:first-child {
  border-left: 1px solid rgba(255,255,255,0.08);
}

/* --- nav links: invisible at rest, revealed on hover --- */
.page-home .navbar .mybtn,
.page-home .navbar .mybtn-nav,
.page-home .navbar .mybtn-dropdown {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--home-text-light);
  font-family: var(--home-font-ui);
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 0.8px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.page-home .navbar .mybtn:hover,
.page-home .navbar .mybtn-nav:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.07);
  border-bottom: 3px solid var(--home-accent);
}

.page-home .navbar .mybtn:active {
  background: rgba(0,0,0,0.1);
  border-bottom: 3px solid var(--home-accent);
}

/* split button pairs - remove the raised box */
.page-home .mybtn-split {
  border: none;
  box-shadow: none;
  background: transparent;
  margin: 0;
  padding: 0;
  display: inline-flex;
}

.page-home .mybtn-dropdown {
  padding: 12px 8px 12px 4px;
}

.page-home .mybtn-dropdown::after {
  border-top-color: var(--home-text-light);
}

.page-home .mybtn-dropdown:hover::after {
  border-top-color: #ffffff;
}

/* --- dropdown menus --- */
.page-home .dropdown-menu {
  background-color: var(--home-bg-header);
  border: 1px solid var(--home-border-dark);
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.page-home .dropdown-item {
  color: var(--home-text-light);
  font-family: var(--home-font-ui);
  font-size: 0.8rem;
}

.page-home .dropdown-item:hover {
  background-color: var(--home-accent);
  color: #ffffff;
}

.page-home .dropdown-divider {
  border-top-color: var(--home-border-dark);
}

/* --- hamburger override --- */
.page-home .navbar-toggler {
  background: transparent;
  border: 1px solid var(--home-border-dark);
  box-shadow: none;
  padding: 6px 10px;
  margin: 6px 10px;
}

.page-home .navbar-toggler:hover {
  background: rgba(255,255,255,0.08);
}

.page-home .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23c6d4df' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.page-home .navbar-collapse {
  background: transparent;
}


/* ============================== HERO SECTION ============================== */
/* dark area at the top with profile card + welcome blurb.
   square photo with white border - circle avatars are 2010s energy     === */

.home-hero {
  background:
    linear-gradient(180deg, rgba(27, 40, 56, 0.88) 0%, rgba(14, 18, 24, 0.92) 100%),
    url('assets/hero-img.webp') center / cover no-repeat;
  padding: 40px 20px;
  border-bottom: 1px solid var(--home-border-dark);
}

.home-hero-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  align-items: stretch;
}

/* --- left column: profile card + pro callout stacked --- */
.home-hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 0 0 auto;
}

.home-profile {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex: 0 0 auto;
}

.home-pfp img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 3px solid #ffffff;
  display: block;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.5);
}

.home-profile-text {
  color: var(--home-text-light);
}

.home-profile-name {
  font-family: var(--home-font-heading);
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  margin: 0 0 4px 0;
  letter-spacing: 1px;
}

.home-profile-sub {
  font-family: var(--home-font-ui);
  font-size: 0.85rem;
  color: var(--home-text-muted);
  margin: 0 0 8px 0;
}

.home-profile-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--home-font-ui);
  font-size: 0.72rem;
  color: var(--home-text-muted);
  margin: 0 0 12px 0;
  letter-spacing: 0.3px;
}

.home-profile-status > span:nth-child(even) {
  color: var(--home-border-dark);
}

.home-profile-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.home-btn-subtle {
  background: transparent;
  border: 1px solid var(--home-border-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--home-text-light);
  font-size: 0.78rem;
  padding: 6px 12px;
}

.home-btn-subtle:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--home-text-muted);
  color: #ffffff;
}

/* --- welcome content box --- */
.home-welcome {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
}

.home-welcome-main {
  background: var(--home-bg-content);
  border: 1px solid var(--home-border-light);
  border-top: none;
  padding: 18px 20px;
  color: var(--home-text-dark);
  flex: 1;
}

.home-welcome-main h2 {
  font-size: 1.3rem;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
}

.home-welcome-main p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 12px 0;
}

.home-welcome-links {
  font-family: var(--home-font-ui);
  font-size: 0.82rem;
  margin: 4px 0 12px 0;
}

.home-welcome-links a {
  color: var(--home-link-dark);
  text-decoration: none;
  font-weight: bold;
}

.home-welcome-links a:hover {
  color: var(--home-accent);
  text-decoration: underline;
}

.home-welcome-links a:visited {
  color: var(--home-link);
  text-decoration: underline;
}

.home-welcome-links > span {
  color: var(--home-border-light);
  margin: 0 8px;
}

.home-decorations {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}


/* ============================== TICKER BAR ================================ */
/* the "SITE NEWS" strip between hero and main content.
   CSS-only marquee scroll - duplicated text in the span for seamless loop.
   every 2000s portal had one of these. it's the law                   === */

.home-ticker {
  background: #1a2030;
  max-width: 1060px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--home-border-dark);
  overflow: hidden;
}

.home-ticker-label {
  font-family: var(--home-font-ui);
  font-size: 0.72rem;
  font-weight: bold;
  color: var(--home-accent);
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-ticker-scroll {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.home-ticker-text {
  display: inline-block;
  font-family: var(--home-font-ui);
  font-size: 0.78rem;
  color: var(--home-text-light);
  white-space: nowrap;
  animation: home-ticker-scroll 28s linear infinite;
  padding-left: 100%;
}

@keyframes home-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}


/* ============================== BUTTONS =================================== */
/* 2000s portal buttons: subtle top-to-bottom gradient, 1px border,
   none of that diagonal Win98 business. clean and purposeful          === */

.home-btn {
  display: inline-block;
  background: linear-gradient(to bottom, #4a6fa5, #2a475e);
  color: #ffffff;
  font-family: var(--home-font-ui);
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border: 1px solid #1b2838;
  border-top: 1px solid #5a8fc5;
  text-decoration: none;
  cursor: pointer;
}

.home-btn:hover {
  background: linear-gradient(to bottom, #5a8fc5, #3a5f7e);
  color: #ffffff;
}

.home-btn:active {
  background: linear-gradient(to bottom, #1b2838, #2a475e);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

/* "see more" link - standalone, not a modifier of .home-btn */
.home-btn-more {
  display: block;
  text-align: right;
  margin-top: 14px;
  background: transparent;
  border: none;
  color: var(--home-link-dark);
  font-family: var(--home-font-ui);
  font-size: 0.85rem;
  font-weight: bold;
  padding: 4px 0;
  text-decoration: none;
  cursor: pointer;
}

.home-btn-more:hover {
  color: var(--home-accent);
  text-decoration: underline;
}


/* ============================== MAIN LAYOUT =============================== */
/* two-column: LEFT sidebar + main content. the portal classic.
   sidebar hides at 900px - we're not torturing phone users.
   max-width 1060px gives comfortable reading width with a chunky
   sidebar. the sweet spot for a personal portal.                      === */

.home-layout {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  padding: 0;
  background-color: var(--home-bg-content);
}

.home-main {
  flex: 1;
  min-width: 0;
}


/* ============================== MULTI-COLUMN ROWS ========================= */
/* side-by-side sections within the main content well. restores visual
   variety - About+Mission and Projects+Blog sit next to each other.
   left column gets more space (flex:3), right column is narrower (flex:2).
   stacks at 768px.                                                    === */

.home-multicol {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--home-border-light);
}

.home-multicol .home-section {
  border-bottom: none;
  display: flex;
  flex-direction: column;
}

.home-multicol .home-section-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-multicol .home-section-body .home-btn-more {
  margin-top: auto;
}

.home-multicol-left {
  flex: 3;
  border-right: 1px solid var(--home-border-light);
}

.home-multicol-right {
  flex: 2;
}


/* ============================== PRO CALLOUT =============================== */
/* recruiter-facing card in the hero, directly under the profile.
   styled as its own mini-panel with a dark chrome header bar -
   impossible to miss, clearly actionable. the orange gradient on
   the header + the pulsing arrow give it just enough "look at me"
   energy without being gaudy                                          === */

.home-pro-callout {
  max-width: 340px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--home-border-dark);
  font-family: var(--home-font-ui);
  font-size: 0;
  color: var(--home-text-light);
  overflow: hidden;
}

.home-pro-header {
  background: linear-gradient(to bottom, #8a4a10 0%, #5e3409 100%);
  padding: 6px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-pro-header h3 {
  font-family: var(--home-font-ui);
  font-size: 0.72rem;
  font-weight: bold;
  color: #ffd699;
  margin: 0;
  letter-spacing: 0.8px;
}

.home-pro-body {
  padding: 10px 14px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--home-text-light);
}

/* accent color variant of .home-btn (orange instead of blue) */
.home-btn--accent {
  background: linear-gradient(to bottom, var(--home-accent-hover), var(--home-accent));
  border: 1px solid #8a4a10;
  border-top: 1px solid #f0a860;
  font-size: 0.75rem;
  padding: 5px 14px;
}

.home-btn--accent:hover {
  background: linear-gradient(to bottom, #ffa54f, var(--home-accent-hover));
}

.home-pro-body a {
  margin-top: 8px;
}


/* ============================== SECTIONS ================================== */
/* two header variants create visual rhythm across the page:
   each ROW gets its own dark chrome hue - navy, teal, umber, slate, steel.
   all headers share the :: prefix and white-on-dark treatment.
   alternating tinted backgrounds (.home-section-alt) add stripe rhythm
   on top of the color changes. old forum / portal vibes.              === */

.home-section {
  border-bottom: 1px solid var(--home-border-light);
}

/* --- heading bar: shared dark gradient bar used across sections,
   welcome box, and sidebar. one definition, multiple contexts        --- */
.home-heading-bar {
  background: linear-gradient(to bottom, #3a5f7e 0%, var(--home-section-head) 100%);
  padding: 8px 20px;
  border-left: 4px solid var(--home-accent);
}

.home-heading-bar h2,
.home-heading-bar h3 {
  font-family: var(--home-font-ui);
  font-size: 0.9rem;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
  letter-spacing: 1px;
}

/* section headers add a subtle bottom border */
.home-section-header {
  border-bottom: 1px solid rgba(0,0,0,0.15);
}


/* --- per-row color hues --- */

.home-hue-teal .home-heading-bar {
  background: linear-gradient(to bottom, #347a68 0%, #265a4a 100%);
}

.home-hue-umber .home-heading-bar {
  background: linear-gradient(to bottom, #7e5a3a 0%, #5e3d2a 100%);
}

.home-hue-slate .home-heading-bar {
  background: linear-gradient(to bottom, #4e4a68 0%, #38364e 100%);
}

.home-hue-steel .home-heading-bar {
  background: linear-gradient(to bottom, #4e5a68 0%, #3a4550 100%);
}

/* --- tinted background variant --- */
.home-section-alt {
  background-color: #edeae5;
}

.home-section-alt .home-card {
  background: #f9f7f4;
}

/* --- section body --- */
.home-section-body {
  padding: 20px;
}

.home-section-intro {
  font-family: var(--home-font-ui);
  font-size: 0.88rem;
  color: var(--home-text-muted);
  margin: 0 0 16px 0;
}

/* general link styling inside content sections */
.home-section-body a {
  color: var(--home-link-dark);
}

.home-section-body a:visited {
  color: var(--home-link-visited);
}

.home-section-body a:hover {
  color: var(--home-accent);
  text-decoration: underline;
}


/* ============================== CONTENT CARDS ============================= */

/* shared flex-wrap grid for cards, projects, contacts - one class */
.home-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.home-card {
  flex: 1;
  min-width: 180px;
  background: var(--home-bg-card);
  border: 1px solid var(--home-border-light);
  padding: 14px;
}

.home-card h3 {
  font-size: 0.95rem;
  font-weight: bold;
  margin: 0 0 8px 0;
  border-bottom: 1px solid var(--home-border-light);
  padding-bottom: 6px;
}

.home-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* vertical stack variant */
.home-cards-col {
  flex-direction: column;
}

.home-cards-col .home-card {
  min-width: 0;
}


/* ============================== SKILL TABS ================================ */
/* keep the CSS-only radio-button tab mechanism from style.css but repaint it.
   the colored language accents on each tab stay - those are great      === */

.page-home .prop-sheet {
  background-color: #e8e4df;
  border: 1px solid var(--home-border-light);
  box-shadow: none;
  font-family: var(--home-font-ui);
}

.page-home .prop-sheet > label {
  font-family: var(--home-font-ui);
  font-size: 0.8rem;
  background: #ddd;
  border: 1px solid var(--home-border-light);
  border-bottom: none;
  border-color: var(--home-border-light) var(--home-border-light) transparent var(--home-border-light);
  color: var(--home-text-dark);
  padding: 6px 14px;
  position: relative;
  top: 1px;
}

.page-home .prop-sheet > label:first-of-type {
  margin-left: 4px;
}

.page-home .prop-sheet > label:hover {
  background: #eee;
}

.page-home .prop-sheet > input[type="radio"]:checked + label {
  background: var(--home-bg-card);
  border-color: var(--home-border-light) var(--home-border-light) transparent var(--home-border-light);
  z-index: 2;
  padding-bottom: 7px;
}

.page-home .prop-sheet-body {
  background: var(--home-bg-card);
  border-top: 1px solid var(--home-border-light);
}

.page-home .prop-sheet-panel .panel-inset {
  background: var(--home-bg-card);
  border: 1px solid #e0ddd8;
  border-color: #e0ddd8;
  box-shadow: none;
}

.page-home .prop-sheet-panel .panel-inset p {
  font-family: var(--home-font-body);
  color: var(--home-text-dark);
}

.page-home .prop-sheet-panel .skill-badge {
  font-family: var(--home-font-ui);
}

/* keep the colored tab-top accents - they're good */
.page-home #skills .prop-sheet > label::before {
  height: 3px;
  top: -1px;
  left: -1px;
  right: -1px;
}

/* language logo ::after positioning is fine from style.css */
.page-home #skills .prop-sheet::after {
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.15));
}


/* ============================== PROJECTS GRID ============================= */

/* shared base for interactive card links (projects, contacts, etc.) */
.home-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--home-border-light);
  background: var(--home-bg-card);
  text-decoration: none;
  color: var(--home-text-dark);
}

.home-card-link:visited {
  color: var(--home-text-dark);
}

.home-card-link:hover {
  background: linear-gradient(to bottom, #f0ece7, #e8e4df);
  border-color: var(--home-accent);
}

/* project-specific overrides */
.home-project-card {
  flex: 1 1 calc(25% - 14px);
  min-width: 120px;
  border-top: 3px solid var(--home-border-light);
  padding: 12px;
}

.home-project-card:hover {
  border-top-color: var(--home-accent);
}

.home-project-card img {
  width: 100%;
  max-height: 80px;
  object-fit: cover;
  border: 1px solid var(--home-border-light);
  margin-bottom: 8px;
}

.home-project-card span {
  font-family: var(--home-font-ui);
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}


/* ============================== BLOG ENTRIES ============================== */

.home-blog-entry {
  border: 1px solid var(--home-border-light);
  padding: 14px;
  background: var(--home-bg-card);
  margin-bottom: 12px;
}

.home-blog-entry h3 {
  font-size: 1rem;
  margin: 0 0 8px 0;
}

.home-blog-entry p {
  margin: 0;
}


/* ============================== FAQ ======================================= */

.home-faq h4 {
  font-size: 0.95rem;
  font-weight: bold;
  margin: 0 0 6px 0;
}

.home-faq p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 10px 0;
}

.home-faq hr {
  margin: 14px 0;
}


/* ============================== CONTACT GRID ============================== */

/* contact-specific overrides */
.home-contact-card {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 24px 14px;
}

.home-contact-card i {
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: var(--home-section-head);
}

.home-contact-card:hover i {
  color: var(--home-accent);
}

.home-contact-card > span:first-of-type {
  font-family: var(--home-font-ui);
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 6px;
}

.home-contact-card > span:last-of-type {
  font-size: 0.82rem;
  color: var(--home-text-muted);
}


/* ============================== SIDEBAR =================================== */
/* LEFT sidebar - all the portal utility blocks in one column.
   navigation, status, currently, external, quote, badges, counter.
   dark section headers, dense content, self-contained mini-panels.
   240px is the sweet spot - wide enough to breathe, narrow enough
   to not steal from the main content. every block earns its place     === */

.home-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, #1e2a38 0%, #1b2535 200%);
  padding: 0;
  color: var(--home-text-light);
  border-right: 1px solid var(--home-border-dark);
}

.home-sidebar-block {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* sidebar heading: narrower padding + bottom border */
.home-sidebar-heading {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.25);
}

.home-sidebar-heading h3 {
  font-size: 0.78rem;
  letter-spacing: 0.8px;
}


/* ---- page nav vs. site map distinction ----
   "On This Page" block gets a subtle tinted background to signal
   these are anchor jumps, not site-wide page links                    --- */

.home-sidebar-page-nav {
  background: rgba(207, 106, 28, 0.10);
}

.home-sidebar-page-nav .home-sidebar-nav a {
  font-size: 0.78rem;
  color: #b0bec5;
  font-style: italic;
}

.home-sidebar-page-nav .home-sidebar-nav a:hover {
  color: var(--home-accent-hover);
  font-style: normal;
}

/* ---- nav links ---- */

.home-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.home-sidebar-nav li {
  padding: 0;
}

.home-sidebar-nav a {
  display: block;
  padding: 5px 14px;
  font-family: var(--home-font-ui);
  font-size: 0.82rem;
  color: var(--home-link);
  text-decoration: none;
}

.home-sidebar-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--home-accent-hover);
  text-decoration: underline;
}

.home-sidebar-nav a:visited {
  color: var(--home-link);
}

/* external links get a subtle "outgoing" indicator */
.home-sidebar-nav-ext a::after {
  content: ' \00BB';
  font-size: 0.9em;
  color: var(--home-text-muted);
}


/* ---- quote of the day ---- */

.home-sidebar-quote {
  padding: 12px 14px;
  margin: 0;
  font-size: 0.84rem;
  color: var(--home-text-light);
  line-height: 1.5;
  font-style: italic;
}

.home-sidebar-quote p {
  margin: 0;
}

.home-sidebar-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: var(--home-font-ui);
  font-size: 0.72rem;
  color: #6b7d8e;
  font-weight: bold;
}


/* ---- badge wall ---- */

.home-badge-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 14px;
  justify-content: center;
}

.home-badge-wall img {
  image-rendering: pixelated;
  height: 31px;
}


/* ---- visitor counter ----
   the ultimate 2000s artifact. monospaced digits in dark boxes.
   obviously fake but completely earnest. it wouldn't be a 2000s
   personal site without one of these                                  --- */

.home-sidebar-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  gap: 6px;
}

.home-counter-label {
  font-family: var(--home-font-ui);
  font-size: 0.68rem;
  color: #6b7d8e;
  letter-spacing: 0.5px;
}

.home-counter-digits {
  display: flex;
  gap: 2px;
}

.home-counter-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 26px;
  background: #1a1a1a;
  color: #4caf50;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  font-weight: bold;
  border: 1px solid #333;
  letter-spacing: 0;
}

/* neutral template class aliases - scoped to the counter mount point */
.home-sidebar-counter .counter-label {
  font-family: var(--home-font-ui);
  font-size: 0.68rem;
  color: #6b7d8e;
  letter-spacing: 0.5px;
}

.home-sidebar-counter .counter-digits {
  display: flex;
  gap: 2px;
}

.home-sidebar-counter .counter-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 26px;
  background: #1a1a1a;
  color: #4caf50;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  font-weight: bold;
  border: 1px solid #333;
  letter-spacing: 0;
}


/* ============================== FOOTER ==================================== */
/* dark bar matching the header. inline nav, badge strip, copyright,
   and the classic "best viewed at" disclaimer. compact and honest -
   doesn't pretend to be more important than it is                     === */

.page-home .home-footer {
  background: linear-gradient(to bottom, #243b50 0%, var(--home-bg-header) 100%);
  border-top: 2px solid var(--home-accent);
  padding: 0;
  text-align: center;
}

.home-footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 16px 20px 20px 20px;
}


/* ---- inline nav row ---- */

.home-footer-nav {
  padding: 0 0 12px 0;
}

.home-footer-nav a {
  font-family: var(--home-font-ui);
  font-size: 0.8rem;
  color: var(--home-text-light);
  text-decoration: none;
}

.home-footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.home-footer-nav > span {
  color: var(--home-text-muted);
  margin: 0 10px;
  font-size: 0.8rem;
}


/* ---- badge strip ---- */

.home-footer-badges {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
}

.home-footer-badges img {
  image-rendering: pixelated;
  height: 31px;
}


/* ---- copyright + disclaimer ---- */

.home-footer-copy,
.home-footer-disclaimer {
  font-family: var(--home-font-ui);
  color: var(--home-text-muted);
  letter-spacing: 0.5px;
  margin: 4px 0 0 0;
}

.home-footer-copy {
  font-size: 0.72rem;
  margin-top: 10px;
}

.home-footer-disclaimer {
  font-size: 0.62rem;
  color: var(--home-border-dark);
}


/* ============================== RESPONSIVE ================================ */
/* sidebar vanishes at 900px. columns stack at 768px. survival mode
   at 576px. early 2000s sites weren't responsive at all but
   we live in a society                                                === */

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

@media (max-width: 768px) {
  .page-home .navbar-bg {
    flex-wrap: wrap;
  }

  .home-hero-inner {
    flex-direction: column;
  }

  .home-hero-left {
    align-items: center;
  }

  .home-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .home-grid {
    flex-direction: column;
  }

  .home-multicol {
    flex-direction: column;
  }

  .home-multicol-left {
    border-right: none;
    border-bottom: 1px solid var(--home-border-light);
  }

  .home-project-card {
    flex: 1 1 calc(50% - 14px);
  }

  .site-tagline {
    display: none;
  }
}

@media (max-width: 576px) {
  .home-section-body {
    padding: 14px;
  }

  .home-hero {
    padding: 24px 14px;
  }

  .home-pfp img {
    width: 120px;
    height: 120px;
  }

  .home-project-card {
    flex: 1 1 100%;
  }

  .home-ticker-text {
    animation-duration: 18s;
  }
}
