/* ====== THEME ====== */
:root {
  --bg: #0a0a0a; /* Deep black background */
  --ink: #ffffff;
  --muted: #e2e8f0; /* Light gray for subtitle */

  --grad-a: #d61f69; /* Deeper pink-violet gradient start */
  --grad-b: #8b5cf6; /* Electric purple gradient end */

  --bar-h: 60px; /* top glow bar height */

  /* Hex geometry - increased sizes by ~10% */
  --hex-w: 264px; /* width (controls cluster size) - increased from 240px */
  --hex-h: calc(var(--hex-w) * 0.866);
  --hex-stroke: 6px; /* Thinner stroke - reduced from 10px */
  --hex-border: #d61f69; /* Deeper pink-violet border */
  --hex-border-hover: #e91e63; /* Deeper pink-violet on hover */
  --hex-fill: #0a0a0a; /* Deep black base */

  /* Center hexagon - larger focal point */
  --center-hex-w: 308px; /* 44px larger than regular hexagons */
  --center-hex-h: calc(var(--center-hex-w) * 0.866);
}

* {
  box-sizing: border-box;
}

/* Performance optimizations */
html {
  scroll-behavior: smooth;
}

/* Optimize animations and transitions */
.hex,
.project-card,
.note-card,
.tool-category,
.btn-primary,
.btn-secondary {
  will-change: transform, box-shadow;
}

/* Reduce repaints for fixed elements */
.topbar,
.footer {
  will-change: transform;
}
html,
body {
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: 
    url('./images/bg.png') center/cover,
    var(--bg);
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI,
    Roboto, 'Helvetica Neue', Arial;
}

/* ====== TOP BAR ====== */
.topbar {
  height: var(--bar-h);
  background: linear-gradient(90deg, #1a1a1a, #2d2d2d);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6),
    0 6px 18px rgba(0, 0, 0, 0.35) inset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
  z-index: 1002;
}
.topbar-name {
  color: #ffffff;
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.topbar-name a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.topbar-name a:hover {
  color: #d61f69;
  text-shadow: 0 0 10px rgba(214, 31, 105, 0.6);
}

.topbar::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #333333, #555555);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* ====== PAGE LAYOUT ====== */
.wrap {
  height: calc(100vh - var(--bar-h));
  display: grid;
  grid-template-columns: 0.8fr 1.2fr; /* left hero smaller / right cluster larger */
  overflow: hidden;
  background: transparent !important;
}

/* ====== LEFT HERO ====== */
.hero {
  padding: 0 clamp(18px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(
    180deg,
    rgba(214, 31, 105, 0.9) 0%,
    rgba(139, 92, 246, 0.8) 50%,
    rgba(214, 31, 105, 0.7) 100%
  );
  color: #fff;
  height: calc(100vh - var(--bar-h));
}
.brand {
  font-family: 'Anton', sans-serif;
  font-size: 14vw;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  text-align: left;
  width: 100%;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem 0;
  color: #ffffff; /* Pure white */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(214, 31, 105, 0.6);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}
.tagline {
  font-size: clamp(14px, 1.8vw, 20px);
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: var(--muted); /* Light gray-blue for subtitle */
}

/* ====== RIGHT PANEL ====== */
.panel {
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 28px);
  background: transparent !important;
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    /* Subtle overlay for better text readability */
    radial-gradient(
      circle at center,
      rgba(214, 31, 105, 0.08) 0%,
      rgba(214, 31, 105, 0.03) 40%,
      transparent 80%
    ),
    /* Light dark overlay */
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(15, 23, 42, 0.2) 50%,
      rgba(0, 0, 0, 0.4) 100%
    );
  pointer-events: none;
  /* Removed animation for better performance */
}

/* ====== HEX CLUSTER (7) ====== */
.cluster {
  position: relative;
  width: calc(
    3.1 * var(--hex-w)
  ); /* Reduced spacing for tighter cluster */
  height: calc(3.1 * var(--hex-h));
  /* Ensure proper centering */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Background shape placeholder */
.cluster::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(3.1 * var(--hex-w) + 60px);
  height: calc(3.1 * var(--hex-w) + 60px);
  background: url('../images/bg.png') center/cover;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

/* Mobile background adjustments */
@media (max-width: 560px) {
  .cluster::before {
    width: calc(2.8 * var(--hex-w) + 40px);
    height: calc(2.8 * var(--hex-w) + 40px);
  }
}

/* subtle spotlight behind the cluster */
.cluster .spotlight {
  content: '';
  position: absolute;
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(
    closest-side,
    rgba(214, 31, 105, 0.12),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0; /* keep under the tiles */
}

/* Mobile spotlight adjustments */
@media (max-width: 560px) {
  .cluster .spotlight {
    width: 400px;
    height: 400px;
  }
}

.hex {
  position: absolute;
  width: var(--hex-w);
  height: var(--hex-h);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 1; /* above the spotlight */
}

.hex a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Center hexagon - larger focal point */
.hex.center {
  width: var(--center-hex-w);
  height: var(--center-hex-h);
}

/* border ring - neon tube effect */
.hex::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #d61f69; /* Deeper pink-violet like real neon */
  clip-path: polygon(
    25% 0%,
    75% 0%,
    100% 50%,
    75% 100%,
    25% 100%,
    0% 50%
  );
  z-index: 0;
  box-shadow: 0 0 12px #d61f69, 0 0 20px #d61f69;
  transition: all 0.3s ease;
  opacity: 0.85;
}

/* inner face with gradient */
.inner {
  position: absolute;
  inset: var(--hex-stroke);
  background: linear-gradient(
    180deg,
    #0a0a0a 0%,
    #1a1a1a 25%,
    #2a2a2a 50%,
    #1a1a1a 75%,
    #0a0a0a 100%
  );
  clip-path: polygon(
    25% 0%,
    75% 0%,
    100% 50%,
    75% 100%,
    25% 100%,
    0% 50%
  );
  display: grid;
  place-items: center;
  padding: 12px 14px;
  z-index: 1;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* crisp inner edge to add depth without heaviness */
.inner::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: inherit;
  border: 1px solid rgba(255, 255, 255, 0.1);
  mix-blend-mode: screen;
  pointer-events: none;
}

.label {
  font-size: clamp(18px, 2.2vw, 24px);
  color: #e8f1ff; /* Lighter text color for better contrast */
  font-weight: 700; /* Bolder text */
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.2px;
  user-select: none;
  transform: translateY(
    -2px
  ); /* Nudge text upward for better centering */
}

/* Hover effects - brighter neon */
.hex:hover::before {
  background: #e91e63; /* Deeper pink-violet for hover */
  box-shadow: 0 0 16px #e91e63, 0 0 28px #e91e63;
}

.hex:hover .inner {
  background: linear-gradient(
    180deg,
    #1a1a1a 0%,
    #2a2a2a 25%,
    #3a3a3a 50%,
    #2a2a2a 75%,
    #1a1a1a 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Center hex - 15% lighter gradient with soft internal glow */
.hex.center .inner {
  background: linear-gradient(
    180deg,
    #1a1a1a 0%,
    #2a2a2a 25%,
    #3a3a3a 50%,
    #2a2a2a 75%,
    #1a1a1a 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 20px rgba(236, 72, 153, 0.1);
}

/* Avatar hex - brightest neon tube */
.hex.center::before {
  background: #d61f69; /* Deeper pink-violet */
  box-shadow: 0 0 14px #d61f69, 0 0 24px #d61f69, 0 0 34px #d61f69;
}

/* Faint radial gradient behind avatar hex for center lighting */
.hex.center::after {
  content: '';
  position: absolute;
  inset: -30px;
  background: radial-gradient(
    circle at center,
    rgba(214, 31, 105, 0.08) 0%,
    rgba(214, 31, 105, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

.hex:hover .label {
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

/* image hex */
.hex.photo .inner {
  padding: 0;
  overflow: hidden;
}
.hex.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
}

.hex.photo:hover img {
  transform: scale(1.02);
}

/* positions (flat-top hex grid) - adjusted for tighter spacing */
.center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.top {
  top: calc(50% - var(--hex-h) - 4px); /* Reduced spacing */
  left: 50%;
  transform: translate(-50%, -50%);
}
.bottom {
  top: calc(50% + var(--hex-h) + 4px); /* Reduced spacing */
  left: 50%;
  transform: translate(-50%, -50%);
}

.tr {
  top: calc(50% - 0.5 * var(--hex-h) - 2px); /* Reduced spacing */
  left: calc(50% + 0.75 * var(--hex-w) + 3px); /* Reduced spacing */
  transform: translate(-50%, -50%);
}
.br {
  top: calc(50% + 0.5 * var(--hex-h) + 2px); /* Reduced spacing */
  left: calc(50% + 0.75 * var(--hex-w) + 3px); /* Reduced spacing */
  transform: translate(-50%, -50%);
}

.tl {
  top: calc(50% - 0.5 * var(--hex-h) - 2px); /* Reduced spacing */
  left: calc(50% - 0.75 * var(--hex-w) - 3px); /* Reduced spacing */
  transform: translate(-50%, -50%);
}
.bl {
  top: calc(50% + 0.5 * var(--hex-h) + 2px); /* Reduced spacing */
  left: calc(50% - 0.75 * var(--hex-w) - 3px); /* Reduced spacing */
  transform: translate(-50%, -50%);
}

/* iPad-specific hex positioning adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  .top {
    top: calc(50% - var(--hex-h) - 3px);
  }
  .bottom {
    top: calc(50% + var(--hex-h) + 3px);
  }
  .tr {
    top: calc(50% - 0.5 * var(--hex-h) - 2px);
    left: calc(50% + 0.75 * var(--hex-w) + 3px);
  }
  .br {
    top: calc(50% + 0.5 * var(--hex-h) + 2px);
    left: calc(50% + 0.75 * var(--hex-w) + 3px);
  }
  .tl {
    top: calc(50% - 0.5 * var(--hex-h) - 2px);
    left: calc(50% - 0.75 * var(--hex-w) - 3px);
  }
  .bl {
    top: calc(50% + 0.5 * var(--hex-h) + 2px);
    left: calc(50% - 0.75 * var(--hex-w) - 3px);
  }
}

/* Mobile-specific hex positioning adjustments */
@media (max-width: 560px) {
  .top {
    top: calc(50% - var(--hex-h) - 2px);
  }
  .bottom {
    top: calc(50% + var(--hex-h) + 2px);
  }
  .tr {
    top: calc(50% - 0.5 * var(--hex-h) - 1px);
    left: calc(50% + 0.75 * var(--hex-w) + 2px);
  }
  .br {
    top: calc(50% + 0.5 * var(--hex-h) + 1px);
    left: calc(50% + 0.75 * var(--hex-w) + 2px);
  }
  .tl {
    top: calc(50% - 0.5 * var(--hex-h) - 1px);
    left: calc(50% - 0.75 * var(--hex-w) - 2px);
  }
  .bl {
    top: calc(50% + 0.5 * var(--hex-h) + 1px);
    left: calc(50% - 0.75 * var(--hex-w) - 2px);
  }
}

/* ====== FOOTER BAR ====== */
.footer {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  color: var(--muted);
  padding: 10px 14px;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  border-top: 1px solid rgba(214, 31, 105, 0.3);
}
.footer a {
  color: #d61f69; /* Deeper pink-violet */
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer a:hover {
  color: #8b5cf6; /* Electric purple */
  text-shadow: 0 0 8px rgba(214, 31, 105, 0.6);
}

/* ====== MOBILE TITLE ELEMENTS ====== */
.mobile-subtitle {
  display: none; /* Hidden by default on desktop */
}

/* Mobile-specific improvements for better compatibility */
@media (max-width: 768px) {
  /* Ensure proper viewport handling */
  html, body {
    overflow-x: hidden;
    width: 100%;
    background: 
      url('../images/mobile.png') center/cover,
      var(--bg) !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
  }
  
  /* Improve touch targets */
  .hex {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Better text rendering on mobile */
  .label {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ====== RESPONSIVE ====== */

/* iPad Layout - Single column with hex cluster only */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --hex-w: 240px;
    --center-hex-w: 280px;
    --hex-stroke: 6px;
  }
  
  /* Ensure dark background */
  html, body {
    background: var(--bg) !important;
    overflow: hidden !important;
  }
  
  /* Allow scrolling on subpages */
  body.subpage {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  
  body.subpage .wrap {
    height: auto !important;
    min-height: calc(100vh - var(--bar-h));
  }
  
  /* Force single column layout */
  .wrap {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr !important;
    height: 100vh;
  }
  
  /* Hide hero section completely */
  .hero {
    display: none !important;
  }
  
  /* Full screen panel */
  .panel {
    padding: 20px 10px 30px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100vh !important;
    position: relative !important;
    width: 100% !important;
    background: var(--bg) !important;
  }
  
  /* Allow scrolling on subpages */
  body.subpage .panel {
    height: auto !important;
    min-height: 100vh;
  }
  
  /* iPad-specific background enhancement */
  .panel::before {
    background: 
      url('../images/bg.png') center/cover,
      radial-gradient(
        circle at center,
        rgba(214, 31, 105, 0.08) 0%,
        rgba(214, 31, 105, 0.03) 40%,
        transparent 80%
      ),
      linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(15, 23, 42, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
      ) !important;
    background-size: cover !important;
    background-position: center !important;
  }
  
  /* Show mobile subtitle */
  .mobile-subtitle {
    display: block !important;
    position: absolute !important;
    top: 40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-family: 'Anton', sans-serif !important;
    font-size: clamp(24px, 3vw, 32px) !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #e2e8f0 !important;
    text-align: center !important;
    z-index: 10 !important;
    line-height: 1.2 !important;
    max-width: 80vw !important;
    white-space: pre-line !important;
  }
  
  /* Centered cluster */
  .cluster {
    width: calc(3.0 * var(--hex-w)) !important;
    height: calc(3.0 * var(--hex-h)) !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) scale(1.2) !important;
  }
  
  /* Ensure cluster background is visible */
  .cluster::before {
    width: calc(3.0 * var(--hex-w) + 80px) !important;
    height: calc(3.0 * var(--hex-w) + 80px) !important;
  }
  
  /* Bigger labels */
  .label {
    font-size: clamp(24px, 3vw, 32px) !important;
  }
}

@media (max-width: 1200px) {
  :root {
    --hex-w: 220px;
    --center-hex-w: 264px;
    --hex-stroke: 6px;
  }
  .wrap {
    grid-template-columns: 0.7fr 1.3fr; /* Even more space for right panel */
  }
  .brand {
    font-size: 13vw;
  }
  .tagline {
    font-size: clamp(13px, 1.6vw, 18px);
  }
}

@media (max-width: 1100px) {
  :root {
    --hex-w: 200px;
    --center-hex-w: 240px;
    --hex-stroke: 5px;
  }
  .wrap {
    grid-template-columns: 0.6fr 1.4fr; /* More space for right panel */
  }
  .brand {
    font-size: 12vw;
  }
  .tagline {
    font-size: clamp(12px, 1.5vw, 17px);
  }
}

@media (max-width: 980px) {
  :root {
    --hex-w: 180px;
    --center-hex-w: 220px;
    --hex-stroke: 5px;
  }
  .wrap {
    grid-template-columns: 0.5fr 1.5fr; /* Much more space for right panel */
  }
  .brand {
    font-size: 11vw;
  }
  .tagline {
    font-size: clamp(11px, 1.4vw, 16px);
  }
  .cluster {
    width: calc(3.0 * var(--hex-w));
    height: calc(3.0 * var(--hex-h));
    margin: 0 auto;
    position: relative;
  }
  .label {
    font-size: clamp(14px, 1.5vw, 18px);
  }
}

@media (max-width: 768px) {
  :root {
    --hex-w: 160px;
    --center-hex-w: 200px;
    --hex-stroke: 4px;
  }
  .wrap {
    grid-template-columns: 0.4fr 1.6fr; /* Even more space for right panel */
  }
  .brand {
    font-size: 10vw;
  }
  .tagline {
    font-size: clamp(10px, 1.3vw, 15px);
  }
  .cluster {
    width: calc(2.8 * var(--hex-w));
    height: calc(2.8 * var(--hex-h));
  }
  .label {
    font-size: clamp(16px, 1.8vw, 20px);
  }
}

@media (max-width: 560px) {
  :root {
    --hex-w: 160px;
    --center-hex-w: 200px;
    --hex-stroke: 4px;
  }
  
  /* Force mobile background */
  html, body {
    background: 
      url('../images/mobile.png') center/cover,
      var(--bg) !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
  }
  
  .wrap {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
  .hero {
    display: none; /* Hide the left side on mobile */
  }
  .panel {
    padding: 15px 5px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
  }
  
  /* Mobile-specific background enhancement */
  .panel::before {
    background: 
      radial-gradient(
        circle at center,
        rgba(214, 31, 105, 0.08) 0%,
        rgba(214, 31, 105, 0.03) 40%,
        transparent 80%
      ),
      linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(15, 23, 42, 0.2) 50%,
        rgba(0, 0, 0, 0.4) 100%
      );
  }
  .mobile-subtitle {
    display: block;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Anton', sans-serif;
    font-size: clamp(22px, 5vw, 36px);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e2e8f0;
    text-align: center;
    z-index: 10;
    line-height: 1.1;
    max-width: 90vw;
  }
  .cluster {
    width: calc(2.8 * var(--hex-w));
    height: calc(2.8 * var(--hex-h));
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1.0);
  }
  .label {
    font-size: clamp(18px, 2.2vw, 24px);
  }
  .footer {
    padding: 8px 10px;
    font-size: 12px;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  :root {
    --hex-w: 140px;
    --center-hex-w: 180px;
    --hex-stroke: 3px;
  }
  
  /* Force mobile background */
  html, body {
    background: 
      url('../images/mobile.png') center/cover,
      var(--bg) !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
  }
  
  .hero {
    display: none; /* Keep hidden on smallest screens */
  }
  .panel {
    padding: 10px 5px 20px;
    height: 100vh;
    position: relative;
  }
  
  /* Mobile-specific background enhancement */
  .panel::before {
    background: 
      radial-gradient(
        circle at center,
        rgba(214, 31, 105, 0.08) 0%,
        rgba(214, 31, 105, 0.03) 40%,
        transparent 80%
      ),
      linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(15, 23, 42, 0.2) 50%,
        rgba(0, 0, 0, 0.4) 100%
      );
  }
  .mobile-subtitle {
    top: 25px;
    font-size: clamp(20px, 4.5vw, 30px);
    max-width: 85vw;
    color: #e2e8f0;
  }
  .cluster {
    width: calc(2.6 * var(--hex-w));
    height: calc(2.6 * var(--hex-h));
    transform: translate(-50%, -50%) scale(0.95);
  }
  .label {
    font-size: clamp(16px, 1.8vw, 20px);
  }
  .footer {
    padding: 6px 8px;
    font-size: 11px;
    gap: 12px;
  }
}

@media (max-width: 400px) {
  :root {
    --hex-w: 120px;
    --center-hex-w: 160px;
    --hex-stroke: 3px;
  }
  
  /* Force mobile background */
  html, body {
    background: 
      url('../images/mobile.png') center/cover,
      var(--bg) !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
  }
  
  .hero {
    display: none;
  }
  .panel {
    padding: 8px 3px 15px;
    height: 100vh;
    position: relative;
  }
  
  /* Mobile-specific background enhancement */
  .panel::before {
    background: 
      radial-gradient(
        circle at center,
        rgba(214, 31, 105, 0.08) 0%,
        rgba(214, 31, 105, 0.03) 40%,
        transparent 80%
      ),
      linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(15, 23, 42, 0.2) 50%,
        rgba(0, 0, 0, 0.4) 100%
      );
  }
  .mobile-subtitle {
    top: 20px;
    font-size: clamp(18px, 4vw, 26px);
    max-width: 80vw;
    color: #e2e8f0;
  }
  .cluster {
    width: calc(2.4 * var(--hex-w));
    height: calc(2.4 * var(--hex-h));
    transform: translate(-50%, -50%) scale(0.9);
  }
  .label {
    font-size: clamp(14px, 1.5vw, 18px);
  }
  .footer {
    padding: 5px 6px;
    font-size: 10px;
    gap: 10px;
  }
}

@media (max-width: 360px) {
  :root {
    --hex-w: 110px;
    --center-hex-w: 150px;
    --hex-stroke: 2px;
  }
  .hero {
    display: none;
  }
  .panel {
    padding: 6px 2px 12px;
    height: 100vh;
    position: relative;
  }
  
  /* Mobile-specific background enhancement */
  .panel::before {
    background: 
      radial-gradient(
        circle at center,
        rgba(214, 31, 105, 0.08) 0%,
        rgba(214, 31, 105, 0.03) 40%,
        transparent 80%
      ),
      linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(15, 23, 42, 0.2) 50%,
        rgba(0, 0, 0, 0.4) 100%
      );
  }
  .mobile-subtitle {
    top: 12px;
    font-size: clamp(11px, 2.2vw, 14px);
    max-width: 70vw;
  }
  .cluster {
    width: calc(2.2 * var(--hex-w));
    height: calc(2.2 * var(--hex-h));
    transform: translate(-50%, -50%) scale(0.85);
  }
  .label {
    font-size: clamp(12px, 1.3vw, 16px);
  }
  .footer {
    padding: 4px 5px;
    font-size: 9px;
    gap: 8px;
  }
}

/* Samsung S23 specific optimizations */
@media screen and (max-width: 412px) and (max-height: 915px) {
  .cluster {
    transform: translate(-50%, -50%) scale(0.9);
  }
  
  .mobile-subtitle {
    top: 30px;
    font-size: clamp(22px, 5vw, 32px);
    max-width: 88vw;
    color: #e2e8f0;
  }
  
  .panel {
    padding: 12px 4px 20px;
  }
  
  /* Ensure hamburger menu is visible */
  .hamburger-menu {
    display: flex !important;
  }
}

/* ====== SUBPAGE LAYOUTS ====== */

/* SUBPAGE SPECIFIC STYLES - COMPLETELY SEPARATE FROM HOMEPAGE */

/* Subpage body styles */
body.subpage {
  overflow-y: auto;
  overflow-x: hidden;
}

/* iPad subpage specific styles */
@media (min-width: 768px) and (max-width: 1024px) {
  body.subpage {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  
  body.subpage .wrap {
    height: auto !important;
    min-height: calc(100vh - var(--bar-h));
  }
  
  body.subpage .panel {
    height: auto !important;
    min-height: 100vh;
  }
}

/* Subpage layout structure */
.subpage-layout {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--bar-h));
  background: var(--bg);
  position: relative;
}

/* Subpage background - simplified */
.subpage-layout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    /* Dark background */
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(15, 23, 42, 0.9) 50%,
      rgba(0, 0, 0, 0.98) 100%
    );
  pointer-events: none;
  z-index: 0;
}

/* Gradient banner for page titles */
.page-banner {
  background: linear-gradient(
    90deg,
    rgba(214, 31, 105, 0.9) 0%,
    rgba(139, 92, 246, 0.8) 50%,
    rgba(214, 31, 105, 0.7) 100%
  );
  padding: 80px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
  height: 25vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-banner h1 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(214, 31, 105, 0.6);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.page-banner p {
  font-size: clamp(18px, 2.2vw, 24px);
  margin: 10px 0 0 0;
  color: var(--muted);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Main content container for subpages */
.page-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 40px;
  position: relative;
  z-index: 1;
}

/* Subpage footer - static positioning */
body.subpage .footer {
  position: static;
  margin-top: 60px;
}

/* Hamburger menu for mobile subpages */
.hamburger-menu {
  display: none;
  width: 40px;
  height: 40px;
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid rgba(214, 31, 105, 0.3);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* Show hamburger menu on mobile and iPad for all pages */
@media (max-width: 1024px) {
  .hamburger-menu {
    display: flex;
  }
}

.hamburger-menu span {
  width: 20px;
  height: 2px;
  background: #d61f69;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(15, 23, 42, 0.95));
  border-left: 1px solid rgba(214, 31, 105, 0.3);
  z-index: 1001;
  transition: right 0.3s ease;
  padding: 80px 30px 30px;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
  right: 0;
  display: block !important;
}

/* Backdrop overlay for mobile menu */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  padding: 15px 0;
  border-bottom: 1px solid rgba(214, 31, 105, 0.2);
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  color: #d61f69;
  padding-left: 10px;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* Common subpage panel styling */
.panel {
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 28px);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Subpage background - toned down version */
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    /* Simplified dark neutral background */
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(15, 23, 42, 0.9) 50%,
      rgba(0, 0, 0, 0.98) 100%
    );
  pointer-events: none;
  animation: none; /* Remove animation for subpages */
}

/* ====== ABOUT PAGE LAYOUT ====== */
.about-layout {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  align-items: start;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 4px solid #d61f69;
  box-shadow: 0 0 20px rgba(214, 31, 105, 0.4);
  margin: 0 auto;
}

.about-avatar::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(214, 31, 105, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

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

.about-stats {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(42, 42, 42, 0.9));
  border: 1px solid rgba(214, 31, 105, 0.2);
  border-radius: 12px;
  padding: 25px;
}

.about-stats h3 {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 20px 0;
  color: #ffffff;
  text-align: center;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(214, 31, 105, 0.1);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #d61f69;
}

.stat-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-align: right;
}

.about-bio {
  color: var(--ink);
}

.about-bio h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 30px 0;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(214, 31, 105, 0.6);
}

.about-bio p {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.7;
  margin: 0 0 25px 0;
  color: var(--muted);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.about-bio p:last-child {
  margin-bottom: 0;
}

.about-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.about-avatar {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 4px solid #d61f69;
  box-shadow: 0 0 20px rgba(214, 31, 105, 0.4);
}

.about-avatar::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(214, 31, 105, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

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

.about-stats {
  text-align: center;
  color: var(--muted);
}

.about-stats h3 {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 15px 0;
  color: #ffffff;
}

.about-stats p {
  font-size: 14px;
  margin: 5px 0;
  opacity: 0.8;
}

.about-bio {
  color: var(--ink);
  max-width: 600px;
}

.about-bio h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 30px 0;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(214, 31, 105, 0.6);
}

.about-bio p {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  margin: 0 0 20px 0;
  color: var(--muted);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ====== WORK/PROJECTS PAGE LAYOUT ====== */

.project-card {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(42, 42, 42, 0.9));
  border: 1px solid rgba(214, 31, 105, 0.3);
  border-radius: 12px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d61f69, #8b5cf6);
}

.project-card:hover {
  border-color: rgba(214, 31, 105, 0.6);
  box-shadow: 0 8px 20px rgba(214, 31, 105, 0.2);
}

.project-card h3 {
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 15px 0;
  color: #ffffff;
}

.project-card p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 15px 0;
}

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

.project-tag {
  background: rgba(214, 31, 105, 0.2);
  color: #d61f69;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ====== TOOLS PAGE LAYOUT ====== */
.tools-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.tools-intro {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

.tools-intro p {
  font-size: 18px;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 800px;
  margin: 0 auto;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.tool-category {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(42, 42, 42, 0.9));
  border: 1px solid rgba(214, 31, 105, 0.2);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tool-category::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(214, 31, 105, 0.05), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.tool-category:hover {
  border-color: rgba(214, 31, 105, 0.4);
  box-shadow: 0 4px 15px rgba(214, 31, 105, 0.15);
}

.tool-category h2 {
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 25px 0;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

.tools-list {
  position: relative;
  z-index: 1;
}

.tool-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(214, 31, 105, 0.1);
}

.tool-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.tool-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: #d61f69;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tool-item p {
  font-size: 14px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
}

.tools-cta {
  text-align: center;
  padding: 60px 20px;
  margin-top: 60px;
  background: rgba(214, 31, 105, 0.05);
  border: 1px solid rgba(214, 31, 105, 0.1);
  border-radius: 12px;
}

.tools-cta h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.tools-cta p {
  color: #cbd5e1;
  font-size: 16px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tool-item {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(42, 42, 42, 0.8));
  border: 1px solid rgba(214, 31, 105, 0.2);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.tool-item:hover {
  border-color: rgba(214, 31, 105, 0.5);
  box-shadow: 0 3px 10px rgba(214, 31, 105, 0.15);
}

.tool-icon {
  font-size: 32px;
  margin-bottom: 15px;
  color: #d61f69;
}

.tool-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.tool-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

/* ====== NOTES PAGE LAYOUT ====== */

/* Notes Grid - already defined above */

/* Note Cards */
.note-card {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(42, 42, 42, 0.9));
  border: 1px solid rgba(214, 31, 105, 0.2);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.note-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(214, 31, 105, 0.05), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.note-card:hover {
  border-color: rgba(214, 31, 105, 0.4);
  box-shadow: 0 3px 12px rgba(214, 31, 105, 0.15);
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.note-header h3 {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  margin-right: 15px;
}

.note-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.note-category {
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.category-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(214, 31, 105, 0.1);
  border: 1px solid rgba(214, 31, 105, 0.3);
  border-radius: 12px;
  color: #d61f69;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.note-summary {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.note-preview {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.note-preview ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.note-preview li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
  padding-left: 0;
}

.note-preview li strong {
  color: #ffffff;
  font-weight: 600;
}

/* Note Card Actions */
.note-card .btn-primary,
.note-card .btn-secondary {
  padding: 8px 16px;
  font-size: 13px;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* Notes CTA Section */
.notes-cta {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(42, 42, 42, 0.8));
  border: 1px solid rgba(214, 31, 105, 0.2);
  border-radius: 12px;
  margin-top: 60px;
}

.notes-cta h3 {
  font-family: 'Anton', sans-serif;
  font-size: 32px;
  color: #ffffff;
  margin: 0 0 15px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.notes-cta p {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 30px 0;
}

.cta-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn-primary,
.cta-actions .btn-secondary {
  padding: 12px 24px;
  font-size: 16px;
}

/* ====== FLOW PAGE LAYOUT ====== */
.flow-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.flow-intro {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

.flow-intro p {
  font-size: 18px;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 800px;
  margin: 0 auto;
}

.flow-timeline {
  position: relative;
  margin-bottom: 60px;
}

/* Timeline line */
.flow-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #d61f69, rgba(214, 31, 105, 0.3));
  z-index: 0;
}

.flow-step {
  position: relative;
  margin-bottom: 50px;
  padding-left: 80px;
  z-index: 1;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #d61f69, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 20px rgba(214, 31, 105, 0.4);
  z-index: 2;
}

.step-content {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(42, 42, 42, 0.9));
  border: 1px solid rgba(214, 31, 105, 0.2);
  border-radius: 12px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.step-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(214, 31, 105, 0.05), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.step-content:hover {
  border-color: rgba(214, 31, 105, 0.4);
  box-shadow: 0 4px 15px rgba(214, 31, 105, 0.15);
}

.step-content h2 {
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 20px 0;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

.step-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.step-content li {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.step-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: #d61f69;
  border-radius: 50%;
}

.step-content li:last-child {
  margin-bottom: 0;
}

.flow-cta {
  text-align: center;
  padding: 60px 20px;
  margin-top: 60px;
  background: rgba(214, 31, 105, 0.05);
  border: 1px solid rgba(214, 31, 105, 0.1);
  border-radius: 12px;
}

.flow-cta h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.flow-cta p {
  color: #cbd5e1;
  font-size: 16px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ====== CONTACT PAGE LAYOUT ====== */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

.contact-simple {
  text-align: center;
  margin-bottom: 60px;
}

.contact-message {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(42, 42, 42, 0.9));
  border: 1px solid rgba(214, 31, 105, 0.2);
  border-radius: 12px;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.contact-message::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(214, 31, 105, 0.05), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.contact-message h2 {
  font-family: 'Anton', sans-serif;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 30px 0;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

.contact-message p {
  font-size: 18px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 40px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.contact-email {
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.email-link {
  display: inline-block;
  font-size: 24px;
  font-weight: 600;
  color: #d61f69;
  text-decoration: none;
  padding: 15px 30px;
  border: 2px solid #d61f69;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(214, 31, 105, 0.1);
}

.email-link:hover {
  background: #d61f69;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(214, 31, 105, 0.4);
  transform: translateY(-2px);
}

.contact-location {
  position: relative;
  z-index: 1;
}

.contact-location p {
  font-size: 16px;
  color: rgba(203, 213, 225, 0.8);
  margin: 0;
}

/* ====== NAVIGATION HEXAGON ====== */
.nav-hex {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 52px;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-hex::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #d61f69;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  box-shadow: 0 0 10px rgba(214, 31, 105, 0.6);
  transition: all 0.3s ease;
}

.nav-hex:hover::before {
  box-shadow: 0 0 20px rgba(214, 31, 105, 0.8);
}

.nav-hex .inner {
  position: absolute;
  inset: 2px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

/* ====== RESPONSIVE SUBPAGES ====== */
@media (max-width: 768px) {
  .page-banner {
    height: 20vh;
    padding: 40px 20px;
  }
  
  .page-content {
    padding: 40px 20px;
  }
  
  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .about-left {
    order: 1;
  }
  
  .about-bio {
    order: 2;
  }
  
  .about-avatar {
    width: 150px;
    height: 150px;
  }
  
  .about-stats {
    max-width: 300px;
    margin: 0 auto;
  }
  
  /* Show hamburger menu on mobile */
  .hamburger-menu {
    display: flex;
  }
  
  /* Ensure topbar has proper spacing on mobile */
  .topbar {
    padding: 0 20px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  
  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .notes-filters {
    justify-content: center;
  }
  
  .timeline {
    padding-left: 30px;
  }
  
  .timeline::before {
    left: 10px;
  }
  
  .timeline-item::before {
    left: -15px;
  }
}

/* Ensure minimum visibility on very small screens */
@media (max-width: 320px) {
  :root {
    --hex-w: 80px;
    --center-hex-w: 100px;
    --hex-stroke: 2px;
  }
  .mobile-subtitle {
    font-size: clamp(10px, 2vw, 14px);
    max-width: 70vw;
  }
  .label {
    font-size: clamp(8px, 0.9vw, 10px);
  }
} 

/* ====== WORK & NOTES PAGE LAYOUT ====== */

/* Container Layout */
.projects-container,
.notes-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* Notes Grid */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* CTA Sections */
.work-cta,
.notes-cta {
  text-align: center;
  padding: 60px 20px;
  margin-top: 60px;
  background: rgba(214, 31, 105, 0.05);
  border: 1px solid rgba(214, 31, 105, 0.1);
  border-radius: 12px;
}

.work-cta h3,
.notes-cta h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.work-cta p,
.notes-cta p {
  color: #cbd5e1;
  font-size: 16px;
  margin-bottom: 30px;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* Project Cards */
.project-card {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(42, 42, 42, 0.9));
  border: 1px solid rgba(214, 31, 105, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(214, 31, 105, 0.05), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.project-card:hover {
  border-color: rgba(214, 31, 105, 0.4);
  box-shadow: 0 4px 15px rgba(214, 31, 105, 0.15);
}

.project-cover {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
    rgba(214, 31, 105, 0.1) 0%, 
    rgba(139, 92, 246, 0.05) 50%, 
    rgba(214, 31, 105, 0.1) 100%);
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

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

.project-content {
  padding: 25px;
  position: relative;
  z-index: 1;
}

.project-content h3 {
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.project-role {
  color: #d61f69;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 20px 0;
}

.project-impact {
  margin-bottom: 20px;
}

.project-impact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-impact li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.project-impact li::before {
  content: '•';
  color: #d61f69;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.project-highlights {
  margin-bottom: 20px;
}

.project-highlights p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.badge {
  padding: 4px 10px;
  background: rgba(214, 31, 105, 0.1);
  border: 1px solid rgba(214, 31, 105, 0.3);
  border-radius: 12px;
  color: #d61f69;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-stack {
  margin-bottom: 25px;
}

.project-stack p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.project-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #d61f69, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(214, 31, 105, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 3px 8px rgba(214, 31, 105, 0.3);
}

.btn-secondary {
  background: rgba(42, 42, 42, 0.8);
  border: 1px solid rgba(214, 31, 105, 0.3);
  color: var(--muted);
}

.btn-secondary:hover {
  background: rgba(214, 31, 105, 0.1);
  border-color: rgba(214, 31, 105, 0.5);
  color: #ffffff;
}

/* Footer CTA */
.footer-cta {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(42, 42, 42, 0.8));
  border: 1px solid rgba(214, 31, 105, 0.2);
  border-radius: 12px;
  margin-top: 40px;
}

.footer-cta h3 {
  font-family: 'Anton', sans-serif;
  font-size: 32px;
  color: #ffffff;
  margin: 0 0 20px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.footer-cta .btn-primary {
  padding: 12px 24px;
  font-size: 16px;
}

/* HUD Background for Work Page - simplified */
.subpage-layout::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(214, 31, 105, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ====== RESPONSIVE WORK PAGE ====== */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .utility-bar {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
  .filters {
    justify-content: center;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .filter-pill {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .search-box input {
    width: 100%;
    max-width: 300px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .project-actions {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  
  .footer-cta {
    padding: 40px 20px;
  }
  
  .footer-cta h3 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .project-content {
    padding: 20px;
  }
  
  .project-content h3 {
    font-size: 18px;
  }
  
  .project-badges {
    gap: 6px;
  }
  
  .badge {
    font-size: 10px;
    padding: 3px 8px;
  }
} 

/* ====== RESPONSIVE NOTES PAGE ====== */

@media (max-width: 768px) {
  .projects-container,
  .notes-container,
  .tools-container,
  .flow-container,
  .contact-container {
    padding: 0 20px;
  }
  
  .tools-intro {
    margin-bottom: 40px;
  }
  
  .tools-intro p {
    font-size: 16px;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tool-category {
    padding: 25px;
  }
  
  .tool-category h2 {
    font-size: 20px;
  }
  
  .tool-item h3 {
    font-size: 16px;
  }
  
  .tool-item p {
    font-size: 13px;
  }
  
  .flow-intro {
    margin-bottom: 40px;
  }
  
  .flow-intro p {
    font-size: 16px;
  }
  
  .flow-step {
    padding-left: 60px;
    margin-bottom: 40px;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .step-content {
    padding: 25px;
  }
  
  .step-content h2 {
    font-size: 20px;
  }
  
  .step-content li {
    font-size: 14px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .notes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .note-card {
    padding: 20px;
  }
  
  .note-header {
    flex-direction: column;
    gap: 10px;
  }
  
  .note-header h3 {
    margin-right: 0;
    font-size: 16px;
  }
  
  .work-cta,
  .notes-cta,
  .tools-cta,
  .flow-cta {
    padding: 40px 20px;
  }
  
  .work-cta h3,
  .notes-cta h3,
  .tools-cta h3,
  .flow-cta h3 {
    font-size: 24px;
  }
  
  .contact-message {
    padding: 40px 30px;
  }
  
  .contact-message h2 {
    font-size: 28px;
  }
  
  .contact-message p {
    font-size: 16px;
  }
  
  .email-link {
    font-size: 20px;
    padding: 12px 24px;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-actions .btn-primary,
  .cta-actions .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .note-card {
    padding: 15px;
  }
  
  .project-card {
    padding: 20px;
  }
} 