@font-face {
  font-family: 'PT Sans Caption';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/PTSansCaption-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'PT Sans Caption';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/PTSansCaption-Bold.woff2') format('woff2');
}

/* Custom scrollbar - minimalist dark theme */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 242, 242, 0.2) transparent;
}
html, body {
  scrollbar-color: rgba(242, 242, 242, 0.2) #0a0a0a;
}
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #0a0a0a;
}
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}
*::-webkit-scrollbar-corner {
  background: #0a0a0a;
}

body {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    #2a2a2a 0%, 
    #1a1a1a 25%, 
    #0f0f0f 50%, 
    #0a0a0a 75%, 
    #050505 100%);
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding-top: 10vh;
  color: #e0e0e0;
}
a {
  color: #f2f2f2;
  font-weight: bold;
  text-decoration: none;
}
a:visited {
  color: inherit !important;
  font-weight: normal !important;
}
#svg-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  max-width: 100%;
  position: relative;
  z-index: 10;
}
#jj-blink-container {
  position: relative;
  width: 100vw;
  max-width: 100%;
  transform: scale(0.6);
}
#jj-blink-container svg {
  width: 90vw;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0px;
}

/* Use viewport height for narrow aspect ratios (mobile portrait) */
@media (max-aspect-ratio: 3/4) {
  #jj-blink-container svg {
    width: 60vh;
    max-width: 90vw;
  }
  #jj-blink-container {
    transform: scale(0.9);
  }
}

.tagline {
  position: relative;
  font-family: 'PT Sans Caption', sans-serif;
  font-size: 1.5rem;
  color: #e0e0e0;
  margin: 0;
  text-align: center;
  transform: scale(calc(1 / 0.6));
  transform-origin: center;
}
@media (max-aspect-ratio: 3/4) {
  .tagline {
    transform: scale(calc(1 / 0.9));
  }
}
.tagline strong {
  color: #BA51B6;
}
#progress-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -2rem 0 2rem 0;
  width: 100vw;
  pointer-events: none;
  z-index: 2;
  height: 100px;
}
.progress-container {
  --progress-duration: 3s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.progress-text {
  position: relative;
  font-family: Arial, sans-serif;
  font-size: 25px;
  color: transparent;
  overflow: hidden;
  white-space: nowrap;
  animation: fadeText var(--progress-duration) infinite;
}
.progress-text::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: #808080;
  width: 0;
  overflow: hidden;
  animation: revealText var(--progress-duration) infinite linear;
}
.progress-circle {
  position: absolute;
  left: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #eeeeee;
  animation: moveCircle var(--progress-duration) infinite linear;
}
@keyframes revealText {
  0% { width: 25px; }
  75% { width: 315px; }
  100% { width: 315px; }
}
@keyframes fadeText {
  0% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes moveCircle {
  0% { transform: translateX(0); opacity: 1; }
  75% { transform: translateX(290px); opacity: 1; }
  100% { transform: translateX(290px); opacity: 0; }
}
#navigation-section {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 1rem;
}
.nav-heading {
  position: relative;
  color: #e0e0e0;
  font-family: 'PT Sans Caption', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  width: 140px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  -webkit-tap-highlight-color: rgba(255, 0, 255, 0.2);
  tap-highlight-color: rgba(255, 0, 255, 0.2);
}
.nav-heading::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  background-attachment: fixed;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}
.nav-heading:hover {
  color: #cccccc;
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}
.nav-heading.active {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}
#content-panel {
  position: relative;
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 2rem;
  font-family: 'PT Sans Caption', sans-serif;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
}
#content-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  background-attachment: fixed;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}
#content-panel.show {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.founder {
  display: flex;
  gap: 1rem;
  text-align: left;
}
.founder-left {
  flex-shrink: 0;
}
.founder-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #333;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(120%) brightness(1.1);
  border: 2px solid rgba(255, 255, 255, 0.1);
}
.founder-text {
  flex: 1;
}
.founder h3 {
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
  margin-top: 0;
}
.founder .job-title {
  font-size: 0.9rem;
  color: #aaaaaa;
  margin-bottom: 0.5rem;
  font-weight: normal;
}
.founder p {
  color: #cccccc;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.linkedin-icon {
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0.5rem 0;
}
.linkedin-icon:hover {
  transform: translateY(-1px);
}
.linkedin-icon img {
  width: 35px;
  height: 35px;
  display: block;
}
#jonny-image {
  background-image: url('../assets/jonny.jpg');
}
#mark-image {
  background-image: url('../assets/mark.jpg');
}
.panel-content.has-background {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-radius: 16px;
  margin: -2rem;
  padding: 2rem;
  overflow: hidden;
}
.panel-content.has-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}
.panel-content.has-background > * {
  position: relative;
  z-index: 2;
}

/* Mobile responsive layout */
@media (max-width: 768px) {
  #navigation-section {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .nav-heading {
    width: 200px;
    height: 45px;
  }
  #content-panel {
    margin: 1rem 1rem 0 1rem;
    padding: 1.5rem;
  }
  .founders-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
footer {
  position: relative;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  font-family: 'PT Sans Caption', sans-serif;
  color: rgba(255, 255, 255, 0.7);
}
footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: radial-gradient(
    circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  background-attachment: fixed;
  pointer-events: none;
}
#discord-widget {
  position: fixed;
  right: 0;
  top: 5vh;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  transition: transform 0.3s ease;
}
#discord-widget.collapsed {
  transform: translateX(300px);
}
#discord-toggle {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 12px 0 0 12px;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  color: #f2f2f2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
#discord-toggle:hover {
  background: rgba(50, 50, 50, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
}
#discord-toggle .discord-icon {
  display: block;
}
#discord-toggle .close-icon {
  display: none;
}
#discord-widget:not(.collapsed) #discord-toggle .discord-icon {
  display: none;
}
#discord-widget:not(.collapsed) #discord-toggle .close-icon {
  display: block;
}
#discord-widget:not(.collapsed) #discord-toggle {
  margin-right: -12px;
  padding-right: 12px;
}
#discord-tooltip {
  position: absolute;
  right: 100%;
  top: 10px;
  margin-right: 10px;
  background: #8ACE00;
  color: #000;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: 'PT Sans Caption', sans-serif;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
}
#discord-tooltip.show {
  opacity: 1;
  transform: translateX(0);
}
#discord-tooltip .tooltip-arrow {
  margin-left: 10px;
  vertical-align: middle;
  flex-shrink: 0;
  animation: bounce-arrow 0.6s ease-in-out infinite;
}
@keyframes bounce-arrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}
#discord-content {
  position: relative;
  background: rgba(15, 15, 15, 0.95);
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  font-family: 'PT Sans Caption', sans-serif;
}
#discord-content::before {
  content: '';
  position: absolute;
  inset: -1px;
  right: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  background-attachment: fixed;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  padding-right: 0;
  pointer-events: none;
  z-index: 10;
}
#discord-members {
  overflow-y: auto;
}
.discord-header {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.discord-header h3 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  color: #e0e0e0;
}
#discord-online-count {
  font-size: 0.85rem;
  color: #8ACE00;
}
#discord-members {
  padding: 12px 16px;
  max-height: 350px;
  overflow-y: auto;
}
.discord-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.discord-member:last-child {
  border-bottom: none;
}
.discord-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
}
.discord-member-info {
  flex: 1;
  min-width: 0;
}
.discord-username {
  color: #e0e0e0;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.discord-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #888;
}
.discord-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ACE00;
}
.discord-status-dot.idle {
  background: #E5ED23;
}
.discord-status-dot.dnd {
  background: #BA51B6;
}
.discord-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
#discord-join-btn {
  display: block;
  text-align: center;
  padding: 12px;
  background: #8ACE00;
  color: #000 !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.2s ease;
}
#discord-join-btn:hover {
  background: #9edf1a;
}

/* Auth bar */
#auth-bar {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  font-family: 'PT Sans Caption', sans-serif;
}
.google-sign-in {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #e0e0e0 !important;
  font-family: 'PT Sans Caption', sans-serif;
  font-size: 0.95rem;
  font-weight: 400 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.3s ease;
}
.google-sign-in:visited {
  color: #e0e0e0 !important;
  font-weight: 400 !important;
}
.google-sign-in:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
.google-sign-in svg {
  flex-shrink: 0;
}
#auth-logged-in {
  position: relative;
  display: flex;
  align-items: center;
}
#auth-user-name {
  color: #e0e0e0;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}
#auth-user-name:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
}
#auth-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 200px;
  z-index: 100;
}
#auth-menu a,
#auth-menu button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  color: #e0e0e0;
  font-family: 'PT Sans Caption', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  box-sizing: border-box;
}
#auth-menu a:visited {
  color: #e0e0e0 !important;
  font-weight: 400 !important;
}
#auth-menu a:hover,
#auth-menu button:hover {
  background: rgba(255, 255, 255, 0.05);
}
#auth-menu button#auth-delete-account {
  color: #e05555;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4px;
  padding-top: 14px;
}

/* Privacy policy page */
.privacy-policy {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'PT Sans Caption', sans-serif;
  line-height: 1.8;
}
.privacy-policy h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.privacy-policy h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #f2f2f2;
}
.privacy-policy p,
.privacy-policy li {
  color: #cccccc;
  font-size: 0.95rem;
}
.privacy-policy ul {
  padding-left: 1.5rem;
}
.privacy-policy .last-updated {
  color: #888888;
  font-size: 0.85rem;
  margin-top: 0;
}
.privacy-policy .back-link {
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .privacy-policy {
    padding: 1.5rem;
  }
}
