@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", sans-serif;
  color: #111;
  background: #fff;
  overflow-x: hidden; /* IMPORTANT: prevents horizontal scroll on mobile */
}

img { max-width: 100%; height: auto; display: block; }

a { color: #111; text-decoration: none; }
a:hover { color: #555; }

p { color: rgb(70,70,70); }

.container{
  width: min(1180px, 92%);
  margin: 0 auto;
}

.section-divider{
  border: none;
  border-top: 1px solid rgba(0,0,0,0.12);
  width: min(1180px, 92%);
  margin: 2.2rem auto;
}

/* ===================== NAV ===================== */
#desktop-nav{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 1.3rem 0;
}

.logo{
  font-size: 1.3rem;
  font-weight: 600;
}

.nav-links{
  list-style:none;
  display:flex;
  gap: 2rem;
  font-size: 1rem;
}

.nav-links a{
  padding-bottom: 0.2rem;
}

.nav-links a:hover{
  border-bottom: 2px solid rgba(0,0,0,0.25);
}

/* Hamburger */
#hamburger-nav{ display:none; padding: 1.2rem 0; }
.hamburger-menu{ position: relative; }
.hamburger-icon{
  border: none;
  background: transparent;
  width: 44px;          /* better tap target */
  height: 34px;
  padding: 4px;
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  cursor:pointer;
}
.hamburger-icon span{
  display:block;
  height: 2px;
  width: 100%;
  background: #111;
}

.menu-links{
  position:absolute;
  right:0;
  top: 48px;
  background:#fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  display:none;
  min-width: 190px;
  overflow:hidden;
  z-index: 50;
}
.menu-links.open{ display:block; }
.menu-links a{
  display:block;
  padding: 0.95rem 1rem;
  font-size: 1rem;
}
.menu-links a:hover{ background: rgba(0,0,0,0.04); }

/* ===================== TYPO ===================== */
.section__text__p1{
  font-weight: 600;
  color: #666;
  margin-bottom: 0.4rem;
}

.title{
  font-size: 2.0rem;
  line-height: 1.08;
}

.section__text__p2{
  font-size: 1.16rem;
  color: #444;
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}

.justify{ text-align: justify; }

/* ===================== HERO ===================== */
#profile{
  padding: 2.0rem 0 0.5rem;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0.1rem;
  align-items: right;
}

/* Nudge the entire right hero column slightly left */
.hero-right{
  transform: translateX(-10px); /* try -10px, -15px, -25px */
}

/* Optional: avoid weird shifts on small screens */
@media (max-width: 900px){
  .hero-right{ transform: none; }
}

.hero-photo{
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 16px 42px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.10);
  max-width: 360px;
}

#socials-container{
  display:flex;
  justify-content: center;
  gap: 0.1rem;
  margin-top: 1.0rem;
}

.icon{
  width: 32px;
  height: 32px;
  cursor:pointer;
  object-fit: contain;
}

.btn-container{
  display:flex;
  justify-content: center;
  gap: 0.1rem;
  margin-top: 1.0rem;
  flex-wrap: wrap; /* prevents overflow on small screens */
}

.btn{
  font-weight: 600;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  cursor:pointer;
  border: 1px solid rgba(0,0,0,0.20);
  transition: all 200ms ease;
  background: #fff;
  min-height: 44px; /* tap target */
}

.btn-color-1{
  background:#111;
  color:#fff;
  border-color:#111;
}
.btn-color-1:hover{ background:#000; }
.btn-color-2:hover{ background: rgba(0,0,0,0.05); }

/* ===================== HERO TREE ===================== */
.logo-tree{
  position: relative;
  width: 720px;             /* ✅ fixed canvas so SVG + absolute nodes align */
  max-width: 100%;          /* ✅ responsive on smaller screens */
  height: 240px;
  margin: 0.1rem 0 0 auto;  /* ✅ pushes the tree to the right */
}

.tree-lines{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

.tree-lines line{
  stroke: rgba(0,0,0,0.35);
  stroke-width: 2;
  stroke-linecap: butt;
}

.tree-node{
  position:absolute;
  width: 150px;
  height: 80px;
  background:#fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px;
  transition: transform 160ms ease, box-shadow 160ms ease;
  text-align:center;
}
.tree-node:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

.tree-node img{
  height: 28px;
  width:auto;
  max-width: 85%;
  object-fit: contain;
}

/* Bigger Apple logo only */
.node-apple img{
  height: 40px;   /* was 28px globally */
  max-width: 95%;
}


.tree-node span{
  font-size: 0.88rem;
  color:#555;
  line-height: 1.1;
}

/* Positions for 720px canvas with reduced gaps */
/* Top row: NIERL - Lakehead - Abyss - Air Uni */
.node-nierl { left: 10px;  top: 0px; }
.node-uw    { left: 175px; top: 0px; }
.node-abyss { left: 335px; top: 0px; }
.node-Air   { left: 500px; top: 0px; }

/* Bottom row: Case Western under Lakehead, Shock & OGDCL under Air Uni */
.node-case  { left: 175px; top: 110px; }
.node-shock { left: 450px; top: 140px; }
.node-ogdcl { left: 615px; top: 140px; }

/* ===================== ABOUT ===================== */
#about{ padding: 0.5rem 0 1.2rem; }

.about-layout{
  display:flex;
  gap: 2rem;
  align-items:flex-start;
  margin-top: 1.4rem;
}

.about-text{ flex: 1.2; }
.about-text p{ margin-bottom: 1rem; line-height: 1.65; }

.about-image{ flex: 0.8; display:flex; justify-content:flex-end; }
.about-pic{
  width: min(420px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* ===================== EDUCATION / ACADEMIC BACKGROUND ===================== */
.academic-heading{
  margin-top: 1.0rem;
  font-size: 1.0rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.education-wrapper{
  margin-top: 0.8rem;
  width: 100%;
}

.edu-box{
  display:flex;
  gap: 1.2rem;
  padding: 0.9rem 0;          /* tighter than 1.4rem */
  align-items:flex-start;
}

.edu-left{
  width: 100px;
  display:flex;
  flex-direction: column;     /* stack logo + timeline */
  align-items: center;        /* center under logo */
  justify-content: flex-start;
  gap: 0.35rem;               /* spacing between logo and timeline */
  flex: 0 0 auto;
}

.edu-logo{
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.edu-right{
  flex: 1;
  min-width: 0;
}

.edu-title{
  font-size: 1.0rem;
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.edu-degree{
  font-size: 0.85rem;         /* readable */
  color:#444;
  margin-bottom: 0.03rem;
  line-height: 1.25;
}

.edu-detail{
  font-size: 0.85rem;         /* readable */
  margin-bottom: 0.03rem;     /* tight spacing between Thesis/CGPA */
  line-height: 1.25;
}

.edu-duration{
  font-size: 0.85rem;
  margin-top: 0;              /* since it's now under logo */
  color:#666;
  text-align: center;
  line-height: 1.2;
}

.edu-btn-row{
  display:flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.edu-divider{
  border:none;
  border-top: 1px solid rgba(0,0,0,0.12);
}

/* Buttons inside education */
.mini-btn{
  display:inline-block;
  padding: 0.52rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  background:#fff;
  font-weight: 600;
  font-size: 0.85rem;
  min-height: 38px;
}
.mini-btn:hover{
  background: rgba(0,0,0,0.05);
}

/* ===================== EXPERIENCE ===================== */
#experience{ padding: 0.5rem 0 1.2rem; }
.exp-wrapper{ margin-top: 1.2rem; }

.exp-box{
  display:flex;
  gap: 1.7rem;
  padding: 1.5rem 0;
  align-items:flex-start;
}

.exp-left{
  width: 190px;
  display:flex;
  flex-direction: column;
  align-items: center;
  text-align:center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.exp-logo{
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.exp-date, .exp-location{
  font-size: 0.95rem;
  color:#555;
}

.exp-right{ flex: 1; min-width: 0; } /* prevents overflow */
.exp-role{
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}
.exp-company{
  color:#444;
  margin-bottom: 0.7rem;
}
.exp-desc{
  margin-left: 1.2rem;
  line-height: 1.65;
}
.exp-desc li{ margin-bottom: 0.35rem; }

/* ===================== RESEARCH ===================== */
#research{ padding: 0.5rem 0 1.2rem; }

.scholar-badge{
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 0.3rem;
  margin-top: 0.7rem;
  margin-bottom: 1.2rem;
}

.filters{
  display:flex;
  justify-content:center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.filter-btn{
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  cursor:pointer;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 40px;
}
.filter-btn:hover{ background: rgba(0,0,0,0.05); }
.filter-btn.active{
  background:#111;
  color:#fff;
  border-color:#111;
}

.research-box{
  display:grid;
  grid-template-columns: minmax(340px, 410px) 1fr;
  gap: 1.7rem;
  align-items:center;
  padding: 1.6rem 0;
}

.project-thumb-lg{
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 12px 30px rgba(0,0,0,0.07);
}

.project-title{
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-desc{
  line-height: 1.65;
  margin-bottom: 0.9rem;
}

.project-btn-row{
  display:flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.research-box.hidden{ display:none; }

/* ===================== CONTACT ===================== */
#contact{ padding: 0.5rem 0 2.0rem; }

.contact-info-upper-container{
  margin-top: 1.2rem;
  padding: 1rem 1rem;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 16px;
  display:flex;
  justify-content:center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-info-container{
  display:flex;
  align-items:center;
  gap: 0.6rem;
}

.email-icon{ width: 34px; height: 34px; }

footer{
  padding: 1.5rem 0 2.2rem;
  text-align:center;
  color:#666;
}
