/* Replace old font declarations with a single declaration for TyAndCosFont */
@font-face {
    font-family: 'TyAndCosFont';
    src: url('fonts/TyAndCosFont-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
body{
    font-family: 'TyAndCosFont', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    background-image: linear-gradient(180deg, #436d9c 0%, #eafaff 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    align-items: center;
}
.site-nav .logo {
    height: 40px;
    vertical-align: middle;
    margin-right: 10px;
}
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}
section {
    display: block;
    text-align: center;
    margin: 10px;
    padding: 20px;
    width: 67%;
    border-radius: 25pt;
    background-color: #f9fcff76;
}
h1{
    color: #050b14;
    font-size: 40pt;

}
section .hero-view {
    height: auto;
    display: block;
    border-radius: 15pt;
    align-content: center;
    margin-top: 20px;
}
.columns {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 5px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.columns .legend {
    flex: 1 1 45%;
    max-width: 65%;
    width: auto;
    box-sizing: border-box;
}
.columns .hero-view{
    flex: 1 1 45%;
    max-width:35%;
    width: auto;
    box-sizing: border-box;
}
.legend {
    font-size: 12pt;
    display: block;
    color: #050b14;
    margin-top: 10px;
}
footer {
    display: block;
    background-color: #a0d4e9;
    text-align: center;
    padding: 10px;
    bottom: 0;
    width: 30%;
    margin: 20px auto 20px auto;
    border-radius: 45pt;
}
h2{
    color: #050b14;
    font-size: 30pt;
}
h3{
    color: #050b14;
    font-size: 25pt;
}
p{
    color: #050b14;
    font-size: 17pt;
    line-height: 1.6;
}

/* Button styling */
.btn{
    background-color: #5a88cc;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25pt;
    font-size: 18pt;
    box-shadow: none;
    transition: background-color 0.3s ease;
}
ul{
    list-style-type:circle;
    font-size: 17pt;
    padding: auto;
}
/* Button hover styling */
.btn:hover{
    background-color: #3f6297;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25pt;
    font-size: 18pt;
    transition: background-color 0.3s ease;
}

/* Space out buttons so they don't clump */
.btn {
  margin: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.welcome-image {
    width: min(350px, 100%);
    height: auto;
    display: block;
    margin: 20px auto;
}
header {
    background-color: #daf4ff;
    padding: 20px;
    text-align: center;
    margin: 7pt;
    border-radius: 35pt;
}
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: #daf4ff;
    padding: 10px 20px;
    border-radius: 30pt;
    flex-wrap: nowrap;
}
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.site-nav a{
    color: #050b14;
    text-decoration: none;
    font-size: 15pt;
    transition: color 0.3s ease, font-size 0.3s ease;
}
.site-nav a:hover{
    color: #5a88cc;
}
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover,
  .site-nav a:focus-visible {
    font-size: 17pt;
  }
}
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}
.nav-menu li {
    margin: 0;
}
.nav-menu a {
    display: inline-block;
    padding: 10px 14px;
}
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    width: 42px;
    height: 34px;
    position: relative;
    transition: background-color 0.2s ease;
}
.nav-toggle:focus-visible {
    outline: 3px solid rgba(90,136,204,0.45);
    outline-offset: 3px;
}
.nav-toggle:hover {
    background-color: rgba(90,136,204,0.15);
}
.nav-toggle-bar {
    position: absolute;
    left: 9px;
    right: 9px;
    height: 3px;
    background-color: #050b14;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar:nth-child(1) {
    top: 10px;
}
.nav-toggle-bar:nth-child(2) {
    top: 17px;
}
.nav-toggle-bar:nth-child(3) {
    top: 24px;
}
.site-nav.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.site-nav.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-nav.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.hero-logo {
    height: 250px;
    display: block;
    margin: 0 auto 20px auto;
}

/* =====================
   GitHub Widget Styling
   ===================== */
.projects-embed { 
  max-width: 1100px; 
  margin: 0 auto; 
}
.github-widget { 
  background: #f9fcffcc; 
  border-radius: 20pt; 
  padding: 18px; 
  box-shadow: 0 6px 24px rgba(5,11,20,0.06);
  text-align: center;
  margin: 0 auto;
}

/* Profile header */
.gh-profile-inner { 
  display: flex; 
  gap: 16px; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: 14px; 
}
.gh-avatar { 
  width: 90px; 
  height: 90px; 
  border-radius: 50%; 
  border: 3px solid #daf4ff; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.gh-name { 
  margin: 0; 
  font-size: 22pt; 
  color: #050b14; 
}
.gh-bio { 
  margin: 6px 0 0 0; 
  font-size: 14pt; 
  opacity: 0.9; 
}
.gh-stats { 
  margin: 6px 0 10px 0; 
  font-size: 12pt; 
}
.gh-stats a { 
  color: #5a88cc; 
  text-decoration: none; 
}
.gh-stats a:hover { 
  text-decoration: underline; 
}

/* Repo grid */
.gh-repos { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
  gap: 14px; 
  justify-content: center;
}
.gh-card { 
  background: #ffffff; 
  border-radius: 16pt; 
  padding: 14px; 
  border: 1px solid #e6eef8; 
  box-shadow: 0 2px 10px rgba(5,11,20,0.04); 
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; 
  cursor: pointer; 
  min-height: 170px; 
}
.gh-card:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(5,11,20,0.08); 
  border-color: #5a88cc; 
  background: #f3f8ff; 
}
.gh-card h3 { 
  margin: 0 0 6px 0; 
  font-size: 14pt; 
}
.gh-card h3 a { 
  color: #050b14; 
  text-decoration: none; 
}
.gh-card h3 a:hover { 
  color: #5a88cc; 
}
.gh-card:focus-within { 
  outline: 3px solid rgba(90,136,204,0.35); 
  outline-offset: 2px; 
}
.gh-card h3 a { 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
}
.gh-desc { 
  margin: 0 0 10px 0; 
  font-size: 12pt; 
}
.gh-meta { 
  display: flex; 
  gap: 10px; 
  flex-wrap: wrap; 
  font-size: 11pt; 
  opacity: 0.85; 
}
.gh-lang { 
  padding: 2px 8px; 
  border-radius: 999px; 
  background: #eaf2ff; 
}
.gh-error { 
  color: #b00020; 
  margin-top: 10px; 
}

/* Responsive tweaks for widget */
@media (max-width: 900px) { 
  .gh-avatar { width: 72px; height: 72px; } 
  .gh-name { font-size: 20pt; } 
}
@media (max-width: 600px) { 
  .gh-profile-inner { align-items: flex-start; } 
  .gh-name { font-size: 18pt; } 
  .gh-bio { font-size: 12pt; } 
  .gh-stats { font-size: 11pt; } 
}

@media (max-width: 768px) {
  .columns .hero-view,
  .columns .legend {
    flex: 1 1 100%;
    max-width: 100%;
  }
  

  .site-nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background-color: #daf4ff;
    border-radius: 24pt;
    padding: 8px 0;
  }

  .site-nav.is-open .nav-menu {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
    padding: 12px 20px;
  }

  section {
    width: 90%;
  }

  main {
    padding: 0 12px;
  }

  h1 {
    font-size: 28pt;
  }

  h2 {
    font-size: 24pt;
  }

  p {
    font-size: 15pt;
  }

  footer {
    width: auto;
    margin: 20px 16px;
  }
}

.sc-embed {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

.sc-player {
  width: 100%;
  border: 0;
  border-radius: 20px;
  display: block;
}

.sc-loading {
  margin: 40px 0;
  font-size: 16pt;
  color: #050b14;
}

.sc-error {
  font-size: 15pt;
  color: #050b14;
}

.sc-error a {
  color: #5a88cc;
  text-decoration: none;
  font-weight: bold;
}

.sc-error a:hover {
  text-decoration: underline;
}

@media (max-width: 820px) {
  .sc-player {
    border-radius: 18px;
  }
}

@media (max-width: 520px) {
  .sc-player {
    border-radius: 16px;
  }
}

/* GitHub-specific button style */
.github-credit { text-align: center; }
.github-credit .btn { 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  margin-top: 16px; 
  background: #24292e; 
  color: #ffffff; 
}
.github-credit .btn:hover { 
  background: #000000; 
}
