/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #111;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding: 1rem;
}

.siteheader {
  position: relative;
  background: url('../assets/screenshots/default.jpg') center/cover no-repeat;
  height: 300px;
  margin-bottom: 2rem;
}

.siteheader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,0.7); /* dark overlay for contrast */
  z-index: 0;
}

.topnav, .callout-info {
  position: relative;
  z-index: 1; /* above overlay */
}


/* Navbar */
.topnav {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 1.5rem;
  height: 60px;
  box-sizing: border-box;
}

/* Name on left */
.nav-left {
  flex: 0 0 auto;
  padding-left: 1rem;
}

.title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

/* Center nav is absolutely centered */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.pages-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.pages-nav a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}

.pages-nav a:hover {
  color: #fff;
}

/* Language picker on right */
.nav-right {
  flex: 0 0 auto;
  margin-left: auto;
  padding-right: 1rem;
}

.language-switcher {
  background: transparent;
  color: #ccc;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

.language-switcher:hover {
  border-color: #6ec1ff;
  color: #6ec1ff;
}

.language-switcher {
  background: transparent;
  color: #ccc;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

.language-switcher:hover {
  border-color: #6ec1ff;
  color: #6ec1ff;
}

/* Callout */
.callout-info{
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 2rem;
  border-radius: 8px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.1);
}

.callout-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.socials {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  background-color: transparent;
  border: 1px solid #333;
  border-radius: 8px;
  width: 2.5rem;    
  height: 2.5rem;         
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  transition: background-color 0.2s, transform 0.2s;
  padding: 0; 
}

.social-btn:hover {
  background-color: #333;
  transform: scale(1.05);
}


.name-info {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #fff;
}

.location-info {
  font-size: 0.875rem;
  color: #aaa;
  margin-bottom: 1rem;
  font-weight: 500;
}

.general-info {
  font-size: 1.125rem;
  font-weight: 400;
  color: #ddd;
  line-height: 1.7;
}

/* lang */
.languages-callout {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background-color: transparent;
  text-align: left;
}

.languages-callout h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #fff;
  text-align: left;
  margin-left: -2rem; /* aligns h2 with .callout-info border */
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem 2rem;
}

.lang-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  padding: 0.5rem 0.75rem;
  border: 1px solid #333;
  border-radius: 6px;
  color: #ccc;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.lang-box:hover {
  background-color: #222;
  border-color: #555;
  color: #fff;
}

.lang-box img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.experience {
  max-width: 800px;
  margin: 3rem auto;
  padding: 1rem 2rem;
}

.experience h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #fff;
  text-align: left;
  margin-left: -2rem; /* aligns with border like languages-callout */
}

/* Timeline container */
.timeline {
  position: relative;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 2rem;
  margin-left: -2rem; /* also aligns with callout border */
}

/* Entries */
.timeline-entry {
  position: relative;
  margin-bottom: 2rem;
}

.dot {
  position: absolute;
  left: -1rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
}

.timeline-entry h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.timeline-entry .time {
  display: block;
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.5rem;
}

.timeline-entry p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.projects-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 1rem 2rem;
}

.projects-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #fff;
  text-align: left;
  margin-left: -2rem;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Card Container */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #333;
  height: 300px;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-img#edutradeimg {
  object-position: top;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

/* Overlay Content */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(17,17,17,0.9) 20%, rgba(17,17,17,0.1) 90%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  color: #fff;
}

.project-overlay h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.tech-stack {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #ccc;
}

.tech-item img {
  width: 18px;
  height: 18px;
}

/* Description */
.project-overlay p {
  font-size: 1rem;
  color: #ccc;
  margin: 0.5rem 0 0 0;
}

/* Learn More Link */
.project-link {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #6ec1ff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-link {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  max-width: 800px;
  margin: 4rem auto 2rem auto;
  padding: 1rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 0.9rem;
  font-weight: 400;
  font-family: 'Inter', system-ui, sans-serif;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials .social-btn {
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  border: 1px solid #444;
  transition: background-color 0.2s, transform 0.2s;
  color: #aaa;
}

.footer-socials .social-btn:hover {
  background-color: #333;
  color: #fff;
  transform: scale(1.1);
}

/* anims */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-out {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-out.hidden {
  opacity: 0;
  transform: translateY(20px);
}

.pages-nav a,
.project-link,
.language-switcher {
  transition: all 0.2s ease-in-out;
}

.lang-box,
.skill-box,
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lang-box:hover,
.skill-box:hover,
.project-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.about, .story {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
}

.about h2,
.story h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #fff;
  text-align: left;
  margin-left: -2rem;
}

.about p {
    margin-left: -2rem;
    font-size: 1.2rem;
}

.story-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 1rem 2rem;
  color: white;
}

.story-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
  text-align: left;
}

.storyline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  padding: 0 2rem;
}

.storyline-entry {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.storyline-entry p {
  font-size: 1.125rem;
  font-weight: 400;
  color: #ddd;
  line-height: 1.7;
}

.storyline-entry.left {
  flex-direction: row;
}

.storyline-entry.right {
  flex-direction: row-reverse;
}

.line-number {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: white;
  color: black;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* VERTICAL LINE — LEFT SIDE */
.storyline-entry.left::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 1rem; /* matches line-number placement */
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.storyline-entry.right::before {
  content: '';
  position: absolute;
  top: 2rem;
  right: 1rem; /* for right-aligned line */
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}


.storyline-entry.left .content {
  padding-left: 2rem;
  text-align: left;
  max-width: 600px;
}

.storyline-entry.right .content {
  padding-right: 2rem;
  text-align: left;
  max-width: 600px;
}

.story h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #fff;
  text-align: left;
  margin-left: -2rem;
}

.posts-container {
      max-width: 800px;
      margin: 3rem auto 5rem;
      padding: 0 1rem;
      display: flex;
      flex-direction: column;
      gap: 1.8rem;
    }

    .post-summary {
      background: #111;
      padding: 1.2rem 1.6rem;
      border-radius: 12px;
      box-shadow: 0 3px 10px rgba(0,0,0,0.3);
      cursor: pointer;
      transition: background 0.25s ease;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease-out, transform 0.6s ease-out, background 0.25s ease;
    }

    .post-summary:hover {
      background: #222;
    }

    .post-summary.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .post-title {
      font-size: 1.3rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 0.3rem;
    }

    .post-date {
      font-size: 0.8rem;
      color: #777;
      font-style: italic;
      margin-bottom: 0.6rem;
    }

    .post-desc {
      font-size: 1rem;
      color: #bbb;
      line-height: 1.4;
    }