html {
  overflow-y: scroll;  /* always show vertical scrollbar */
}
:root {
    --bg-dark: #121212;
    --text-light: #e0e0e0;
    /*--button-color: linear-gradient(90deg, #00c3ff, #a5d3f8);*/
    --button-color: linear-gradient(90deg, #4a4, #000);
    --panel-dark: #3e494b;
    --card-bg: #1a1a1a;
    --model-param-count: 1B;
    --model-n-layers: 20;
    --model-n-embed: 2048;
    --model-n-heads: 8;
    --model-n-embed-head: 256;
    --model-n-ff: 8192;
    --model-n-vocab: 32768;
    --model-n-context: 2048;

    /* Add any other model params you want to centralize */
  }
/* Base layout */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

nav a {
  color: black;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
}

/* Main content layout */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Link style */
a {
  color: #fff8dc;
  text-decoration: none;
  font-weight: bold;
  position: relative;        /* needed for ::after positioning */
  transition: color 0.2s ease;
}

/* Create the underline with ::after */
a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;               /* thickness of underline */
  bottom: 0;
  left: 0;
  background-color: #fff8dc; /* underline color */
  transition: width 0.3s ease;
  border-radius: 1px;
}

/* Animate the underline on hover */
a:hover {
  color: #fff8dc;
}

a:hover::after {
  width: 100%;
}


/* Button styling */
.button {
  background: var(--button-color);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  display: inline-block;
  text-decoration: none !important; /* force no underline */
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;  /* if you used ::after underline on links, disable for button */
}
.button2 {
    background: white;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none !important; /* force no underline */
    font-weight: bold;
    cursor: pointer;
    position: relative;  /* if you used ::after underline on links, disable for button */
  }

.button:hover {
  background: linear-gradient(90deg, #a5d3f8, #00c3ff);
  text-decoration: none !important; /* force no underline on hover */
}

.button::after {
  content: none !important; /* disable underline animation if added via ::after */
}

/* Content section */
.content {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
  line-height: 1.6;
}

.content h1{
  color: #4a4;
}
.content h2 {
  color: #4a4;
}
.content h3 {
  color: #4a4;
}

.content p {
  margin-bottom: 1.5rem;
}

/* Header */

/* CODE PANEL */
.code-stream {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75px; /* half of 150px */
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: black;
  filter: blur(0.6px);
}

.code-line {
  position: absolute;   /* vital to .js file positioning working */
  white-space: pre;
  opacity: 0;
}

header > *:not(.code-stream) {
  position: relative;
  z-index: 2;
}

/* Header should have room for the effect */
header {
  position: relative;
  overflow: hidden;
  height: 75px;
  padding-left: 1rem;
  padding-right: 1rem;

  display: flex;               /* horizontal layout */
  flex-direction: row;         /* explicitly row */
  justify-content: space-between; /* title left, nav right */
  align-items: center;         /* vertical center */

  background: linear-gradient(90deg, #224422, #32CD32, #11DD11);
  background-size: 300% 300%;
  z-index: 1;
}

header > div strong {
  color: black;  /* title text black */
}


/* Desktop: hide mobile menu, show desktop menu */
@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
  .desktop-menu {
    display: flex; /* or whatever layout you want */
  }
}

/* Mobile: hide desktop menu, show mobile toggle */
@media (max-width: 767px) {
  .desktop-menu {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
}
/* Base Styles */
.navbar {
  font-family: sans-serif;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}


/* Desktop Menu */
.desktop-menu {
  display: flex;
  gap: 20px;
}
.desktop-menu .submenu {
  display: none;
  position: absolute;
  background: #f0f0f0;
  padding: 10px;
  margin-top: 5px;
}
.desktop-menu li:hover > .submenu {
  display: block;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: relative;
}
.mobile-text {
  color: #fff8dc;
  padding-right: 3rem;
  line-height: 1.86;

}

/* Media Queries */
@media (max-width: 767px) {
  .desktop-menu {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
}



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

@keyframes fadeOut {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

.token.keyword   { color: #1a73e8; font-weight: bold; }
.token.function  { color: #b037dc; }
.token.string    { color: #22863a; }
.token.comment   { color: #6a737d; font-style: italic; }
.token.number    { color: #d73a49; }


    
    
    .two-column {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      align-items: flex-start;
      margin: 2rem 0;
    }



    .column-text {
      font-size: 1rem;
      line-height: 1.6;
      flex: 1 1 60%;
    }

    .column-image img {
    flex: 1 1 40%;
      width: 100%;
      height: auto;
      border-radius: 12px;
      border: 1px solid #ccc;
      box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
      
    }

    .image-caption {
      font-size: 0.9rem;
      color: #666;
      margin-top: 0.5rem;
      text-align: center;
    }