/* about.css */

:root {
  --bg: #11111b;
  --bg-alt: #181825;
  --fg: #cdd6f4;
  --fg-muted: #a6adc8;
  --accent-peach: #fab387;
  --accent-green: #39ff14;
  --accent-blue: #00e0ff;
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --radius: 12px;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

/* Reset + Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  height: auto;
  min-height: 100%;
  background: var(--bg);
  font-family: var(--font-sans);
  color: var(--fg);
  line-height: 1.7;
}

/* Diagonal animated background */
.bg-diagonal {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    135deg,
    var(--bg) 0%,
    var(--bg-alt) 25%,
    var(--bg) 50%,
    var(--bg-alt) 75%,
    var(--bg) 100%
  );
  background-size: 400% 400%;
  animation: bgMove 50s ease infinite;
}
@keyframes bgMove {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}


/* Section container */
section {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px) saturate(140%);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  width: 100%;

}

/* Typography */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--accent-blue);
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--accent-green);
}
p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 65ch;
}

/* Lists */
ul {
  list-style: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
ul li {
  font-size: 1.05rem;
  color: var(--fg-muted);
}
ul li a {
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent-blue);
}
ul li a:hover {
  border-bottom-style: solid;
  color: var(--accent-peach);
}

.go-back-btn {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-blue);
  color: var(--bg);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s ease;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.go-back-btn:hover {
  background: var(--accent-peach);
  color: var(--bg);
}

/* Responsive */
@media (max-width: 768px) {
  main {
    padding: 5rem 1.5rem 3rem;
    gap: 3rem;
  }
  section {
    padding: 2rem;
  }
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 1rem;
  text-decoration: none;
  backdrop-filter: blur(16px) saturate(130%);
  transition: all 0.25s ease;
}

.social-btn:hover {
  background: var(--accent-blue);
  color: var(--bg);
  border-color: var(--accent-blue);
}

/* ─── Diagonal Animated Background ─── */
.bg-diagonal {
  position: fixed;
  inset: 0;
  z-index: -1;  /* Ensure it stays behind the content */
  background: linear-gradient(
    135deg,
    var(--bg) 0%,
    var(--bg-alt) 25%,
    var(--bg) 50%,
    var(--bg-alt) 75%,
    var(--bg) 100%
  );
  background-size: 400% 400%;
  animation: bgMove 75s ease infinite;
}

@keyframes bgMove {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}


html, body {
  position: relative;
  z-index: 0;
}

/* Top 2-column layout */
main {
  width: 100%;
  padding: 6rem 6vw 4rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}


/* Wrapper for top split */
.top-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Group Social + Skills together */
.right-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Stack Favorite Games + Fun Facts below */
.bottom-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Responsive fallback for mobile */
@media (max-width: 768px) {
  .top-split {
    grid-template-columns: 1fr;
  }
}

.top-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  min-height: 80vh; /* <- makes it visually fill screen */
  align-items: center;
}

.top-split > section,
.right-stack > section {
  padding: 3rem 2rem;
  min-height: 100%;
  justify-content: center;
}

/* Bigger text for top hero-like sections */
.top-split h1 {
  font-size: clamp(3.5rem, 6vw, 5rem);
  color: var(--accent-blue);
}

.top-split h2 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--accent-green);
}

.top-split p {
  font-size: 1.3rem;
  line-height: 1.9;
  max-width: 70ch;
  color: var(--fg-muted);
}

.top-split .social-btn {
  font-size: 1.15rem;
  padding: 0.8rem 1.5rem;
}

.fit-width {
  width: fit-content;
  max-width: 100%;
}

  /* ─── Custom Scrollbar (WebKit) ───────────────────── */
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  
  ::-webkit-scrollbar-track {
    background: #181825; /* Mantle */
  }
  
  ::-webkit-scrollbar-thumb {
    background-color: #1e1e2e; /* Base */
    border-radius: 8px;
    border: 2px solid #181825; /* Mantle (for padding) */
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background-color: #313244; /* Slightly lighter when hovered */
  }
  
  /* ─── Firefox Scrollbar ───────────────────────────── */
  * {
    scrollbar-width: thin;
    scrollbar-color: #313244 #181825; /* thumb, track */
  }
  

  @media (max-width: 768px) {
    html, body {
      margin: 0;
      padding: 0;
      overflow-x: hidden;
    }
  
    main {
      padding: 2rem 1.25rem !important;
      display: flex;
      flex-direction: column;
      gap: 2.5rem;
    }
  
    .top-split {
      display: flex !important;
      flex-direction: column !important;
      gap: 2.5rem !important;
    }
  
    .top-split > section,
    .right-stack > section,
    .bottom-stack > section {
      padding: 1.5rem 1rem !important;
      width: 100% !important;
      box-sizing: border-box;
    }
  
    .right-stack {
      display: flex !important;
      flex-direction: column !important;
      gap: 2rem !important;
    }
  
    .bottom-stack {
      display: flex !important;
      flex-direction: column !important;
      gap: 2rem !important;
    }
  
    h1 {
      font-size: 2rem !important;
    }
  
    h2 {
      font-size: 1.4rem !important;
    }
  
    p, li {
      font-size: 1rem !important;
      line-height: 1.6;
    }
  
    .social-buttons {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
  
    .social-btn {
      font-size: 1rem !important;
      padding: 0.6rem 1.25rem !important;
      text-align: center !important;
      display: block;
      width: 100%;
    }
  
    .go-back-btn {
      position: absolute;
      top: 1rem;
      left: 1rem;
      font-size: 0.9rem;
      padding: 0.4rem 0.8rem;
    }
  }
  