/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Retro anime-inspired color palette */
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f172a;
    --accent-primary: #1b3375;;
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
}

p{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;

}

/* Hamburger menu checkbox (hidden) */
.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #d3d4d5;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 200px;
    flex-direction: column;
    background: rgba(22, 22, 22, 0.98);
    border-left: 1px solid var(--border-color);
    padding: 1rem;
    height: calc(100vh - 60px);
    transition: right 0.3s ease;
    align-items: flex-start;
  }
  
  .nav-toggle:checked ~ .nav-links {
    right: 0;
  }
}

.navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    backdrop-filter: blur(3px);
    background: rgba(22, 22, 22, 0.028);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.logo img {
    height: 40px;
    padding-top: 0.25rem;
    width: auto;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: "Noto Sans", sans-serif;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    text-decoration: underline;
}

body{
    background-color: #1d1d1d;
    color: #d3d4d5;
}

/* MAIN LAYOUT */
.layout {
  display: flex;
  height: 100%;
  padding: 5rem 3rem 3rem 3rem;
  gap: 3rem;
}

/* Sidebar container */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 220px;
}

/* Individual boxes */
.box {
  background-color: #2b2b2b;
  display: flex;
  flex-direction: column;
  /* border: solid 1px #1b3375; */
  border: solid 1.5px #165A68;
  /* opacity: 60%; */
  border-radius: 4px;
  background-color: transparent;
  gap: 0.4rem;
}

/* Box titles */
.box-title {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #0e2041;
  color: #f0f0f0;
  text-align: center;
  font-size: 0.8rem;
  padding: 0.4rem;
  border-radius: 5px 5px 0 0;
  border-bottom: 1px solid #165A68;
}

/* Links */
.box a {
  font-family: Arial, sans-serif;
  padding: 0.6rem;
  color: #ececec;
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 0.5rem;
  opacity: 0.85;
  border-bottom: 1px dashed #1b3375;
}

.box a:hover{
    color: #2e9d2e;
}

.links-section a:last-child {
  border-bottom: none;
}


/* CENTER HERO */
.hero {
  font-family: Arial, sans-serif;
  flex: 1;
}

.hero h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.hero h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* RIGHT IMAGE */
.hero-image img {
  height: 250px;
  width: 100%;
  border: 2px;
  border-radius: 0 0 4px 4px;

}

.quote {
  font-style: italic;
  font-size: 0.9rem;
  color: #888;
  border-left: 3px solid #2e9d2e;
  padding-left: 0.8rem;
  margin: 2rem 0;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-box {
  font-size: 0.8rem;
  background-color: transparent;
  border-radius: 8px;
}

.info-box-item{
  padding: 0.6rem;
  color: #ececec;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  line-height: 0.5rem;
  opacity: 0.85;
  border-bottom: dashed 1px #1b3375;
}

.hero-nest-subtitle {
  color: #8aff8a;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.project-title {
  font-weight: 600;
  color: #d0ffd0;
  text-decoration: none;
}

.project-title:hover {
  text-decoration: underline;
  color: #b6ffb6;
}

.project-card.compact {
  border: 1px solid #2e2e2e;
  padding: 0.75rem;
  border-radius: 3px;
  background: #1b1b1b;
}

.project-card.compact p {
  font-size: 0.8rem;
  color: #bbb;
  margin: 0.3rem 0;
}

.project-meta {
  font-size: 0.7rem;
  color: #777;
}


.tech-section.flat {
  background: transparent;
  border: 1px solid #2e2e2e;
  padding: 0.75rem;
  border-radius: 3px;
  margin-top: 3rem;
}

.tech-section.flat h3 {
  font-size: 0.9rem;
  color: #8aff8a;
  margin-bottom: 0.5rem;
}

.tech-group {
  display: flex;
  gap: 0.8rem;
  font-size: 0.8rem;
  padding: 0.25rem 0;
  border-top: 1px solid #2a2a2a;
}

.tech-group:first-of-type {
  border-top: none;
}

.tech-label {
  min-width: 80px;
  color: #888;
}

.tech-items {
  color: #bbb;
}



.ascii-art {
  margin-left: auto;
  margin-right: 0;
  width: max-content;

  font-family: "JetBrains Mono", monospace;
  font-size: 2px;
  line-height: 1;
  color: #8aff8a;
  white-space: pre;
  margin-top: -0.5rem;
}


.hero ul {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero li {
  margin-bottom: 0.5rem;
}

/* About Section */
.about-section {
  display: flex;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.about-image {
  width: 200px;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

.about-text h2 {
  margin-bottom: 0.5rem;
}

.about-text hr {
  margin-bottom: 1rem;
  border: none;
  border-top: 1px solid #2e2e2e;
}

.site-footer {
  margin-top: 4rem;
  padding: 1rem 0;
  border-top: 1px solid #2e2e2e;
  font-size: 0.75rem;
  color: #888;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.site-footer a {
  color: #8aff8a;
  text-decoration: none;
  opacity: 0.85;
}

.site-footer a:hover {
  opacity: 1;
}

.footer-sep {
  color: #555;
}


@media (max-width: 1024px) {
   .navbar{
    padding: 0 2rem;
  }

  .layout {
    flex-direction: column;
    padding: 5rem 2rem 2rem 2rem;
    gap: 2rem;
  }

   .hero {
    order: 3;
  }
    .sidebar {
    display: flex;
    flex-direction: row;
    width: 100%;
  }

  .sidebar .box {
    flex: 1 1 0;
    min-width: 0;
  }

  .sidebar .box:nth-child(3) {
    display: none; 
  }
  .doom{
    display: none;
  }

  .sidebar .hero-image {
    display: none;
  }
 .right-column {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: column;      
    align-items: center;        
    gap: 1.5rem;
  }

  .right-column .hero-image,
  .right-column .info-box {
    width: 100%;
    max-width: 420px;           
  }

  .daoism {
    display: none;
  }

  .ascii-art {
    font-size: 1.5px;
    margin-top: -1rem;
  }

}


@media (max-width: 600px) {

  .navbar{
    padding: 0 2rem;
  }

  .layout {
    flex-direction: column;
    padding: 5rem 1rem 1.5rem 1rem;
    gap: 1.5rem;
  }

  .hero {
    order: 3;
  }

  .sidebar {
    order:1;
    flex-direction: column;
    width: 100%;
  }

  .sidebar .box:not(:first-child) {
    display: none;
  }

  .doom{
    display: none;
  }

  .sidebar .hero-image {
    display: none;
  }

  .daoism{
    display: none;
  }

  .right-column {
    order:2;
    flex-direction: column;
    width: 100%;
  }

  .hero-image img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
  }

  .ascii-art {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;   
    width: max-content;

    font-size: 1.5px;    
    text-align: center;   
  }

   .about-section {
    flex-direction: column;   
    gap: 1rem;
  }

  .about-image {
    width: 100%;             
    max-width: 100%;
    height: auto;
  }

  .about-text {
    width: 100%;
  }
}
